Re: where php at?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

 Warren:

Bingo -- that did it -- mine is:

/usr/local/bin/php

as well.

Now, to figure out what command I need to run a php script from there.

Thanks -- one step closer.

tedd
--
--------------------------------------------------------------------------------
http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux