Re: where php at?

From: Date: Mon, 27 Mar 2006 19:45:41 +0000
Subject: Re: where php at?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-232646@lists.php.net to get a copy of this message
ah, perhaps you don't have a shell account. With a shell account you would telnet to the server and enter the which command on the command line right after your prompt, once you were logged on. try creating a file called "which.php" have it contain the following; <?php $result = exec("which php"); echo $result; ?> Upload it to your website and execute it in your browser. I uploaded it to my RedHat Linux server and it showed the following; /usr/local/bin/php good luck, Warren Vail At 11:05 AM 3/27/2006, tedd wrote:
Warren Vail said:
Looks like you have a unix machine, if you have a shell account you may be able to use the command; which php to identify it's path.
John Meyer said:
If you're on a linux box, have you tried "which php"?
Where do I type in "which php"? I'm dealing with a host account and I'm simply trying to find out where php is so I can set up a cron job. Thanks. tedd -- -------------------------------------------------------------------------------- http://sperling.com


« previous php.general (#232646) next »