Page 1 of 1

how to handle comand prompt using php

Posted: Thu Jul 08, 2004 5:56 am
by bugthefixer
how can i run any comand on comand prompt using php...

Posted: Thu Jul 08, 2004 6:45 am
by kettle_drum
You mean you want to be able to run commands like "ls" and "uptime" from a php script? Or are you trying to run a php script from the command line?

answer 1:
exec(); and system();

answer 2:
>php this/is/my/script.php