PDA

View Full Version : [PHP] trovare la path di php


Janky
10-03-2008, 20:53
ciao a tutti,
c'è un modo per trovare la path del binario di php su un server online??

sto installando un cms un po' scrauso, che cerca php nella directory /usr/local/bin/php ma mi dice not found...

non vorrei andare per tentativi, visto che sennò devo riuppare tutti i pacchetti da capo

esiste uno scriptino per trovare sta benedetta path??

grazie

Janky
12-03-2008, 23:52
nessuno a qualche idea?

dad_89
13-03-2008, 15:23
Basta usare phpinfo(); oppure se puoi usare whereis ...

<?php echo shell_exec("whereis php"); ?>

Janky
14-03-2008, 18:40
perfetto! grazie mille

Hardware Upgrade Forum Database Error
Database Error Database error
The Hardware Upgrade Forum database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.hwupgrade.it home page, then try to open another page.
  • Click the Back button to try another link.
The www.hwupgrade.it forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.