If the script runs by loading the page then you can use wget ie
wget http://www.mydomain.com/myscript.php
All your doing is just loading the page ie the same as if you browsed that page in a web browser.
Yes , you can run that from any machine.
Hi,
I have 1 host with cron, another without.
I want to have a timed event (on Host A) that calls a script on my on other host (Host B) , preferably with PHP.
Is it as easy as just calling a local php script on Host A with a cron which then runs an include script that calls the script on Host B?
I have read about 'wget' - does anybody know about that?
Thanks
Daniel
If the script runs by loading the page then you can use wget ie
wget http://www.mydomain.com/myscript.php
All your doing is just loading the page ie the same as if you browsed that page in a web browser.
Yes , you can run that from any machine.
fopen could also be another thing to try...something like:
fopen("http://yoursite/cron.php", "r")
http://www.php.net/fopen
Think that wget would be better tho...just another option
I had the same dilema, and through cpanel and with a little help, I was able set up the cron job to run the script, even though it was in a password protected directory.
OK thanks,
So I can try either 'fopen' or 'wget'.
Do I have to install 'wget' or should it already be installed via PHP or Unix/Apache?
Thanks
Daniel
wget is a standard UNIX command
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks