What is the path to php.exe?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jkirkpatrick
    Junior Member
    • Jan 2005
    • 12

    #1

    What is the path to php.exe?

    I know nothing about php files but the company who created a script for me needs to know the path to the php.exe file. Does that make sense?

    I found the path to PERL in my CPanel but nothing for php. Anyone know what I would need?

    If it helps it's to run a Cron Job that calls a php file.

    Thanks,
    Jennifer
  • dammitjanet
    Junior Member
    • Jan 2005
    • 29

    #2
    usr/local/bin i think

    Comment

    • -Oz-
      Senior Member
      • Mar 2004
      • 545

      #3
      for cron i would just use
      Code:
      php /path/to/file.php
      Dan Blomberg

      Comment

      • jkirkpatrick
        Junior Member
        • Jan 2005
        • 12

        #4
        When you say to use:

        php /path/to/file.php

        don't have I have to know what to replace "path" and "to" with? Obviously "file.php" would be the file I want to run but I don't know what to use for the other 2 values.

        Jennifer

        Comment

        • -Oz-
          Senior Member
          • Mar 2004
          • 545

          #5
          path to file.php is the actual path to the file. For dathorn it most likely would be:
          Code:
          /home/username/public_html/folder/file.php
          Replace username with the username of the account and folder with the folder where the script is located (there may not be a folder if its in the main directory, in that case just leave it out.
          Dan Blomberg

          Comment

          Working...