Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

to run a php script without apache

Status
Not open for further replies.

netcomander

Programmer
Jul 20, 2001
68
DE
hi all,

I urgently need to run a php-script
without apache.

To achieve this, usually you have to type into
your linuxprompt
filename.php -q

This does not work, but it did on my former
computer.
Is there anyone with a hint how to make my php
run from my linux-prompt?

thanks in advance
greetings markus
 
uh, just do:

/path/to/php filename -q

or cmod it to 755 and put the #! line @ teh top:

./filename q
Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top