|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Marketing & Strategy
Industry Role:
Join Date: Jun 2001
Location: Former nomad
Posts: 14,293
|
How to run php script from shell?
I need to run a php script from command line, does anyone know how I can do this?
__________________
Whitehat is for chumps If you don't do it, somebody else will - true story!
|
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Jul 2002
Location: A warm place.
Posts: 634
|
If your PHP was compiled as an Apache module, you can't do that. If it was compiled as a CGI then just run php -f phofile.php
__________________
I couldn't possibly know what I'm talking about, I'm completely, absolutely and definitively out of my fucking mind. |
|
|
|
|
|
#3 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
If it's an apache module, use wget on it
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#4 | |
|
So Fucking Banned
Join Date: Sep 2001
Location: shell beach
Posts: 7,938
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Jul 2002
Location: A warm place.
Posts: 634
|
If you do wget or lynx or curl make sure to set timeout to something more than the deafult 30 seconds if your script takes its sweet time to run.
__________________
I couldn't possibly know what I'm talking about, I'm completely, absolutely and definitively out of my fucking mind. |
|
|
|
|
|
#6 |
|
Marketing & Strategy
Industry Role:
Join Date: Jun 2001
Location: Former nomad
Posts: 14,293
|
Thanks dnsmonster, that did it!
__________________
Whitehat is for chumps If you don't do it, somebody else will - true story!
|
|
|
|