need php script to call/run another php script on different
Posted: Sat Nov 27, 2004 7:27 am
I need to setup a php script to call and run another php script that is on a different web server.
Basically, I have cron access on one server, but not on another and want to run a daily report on the server without cron access.
Is there a simply way to do this and how?
example:
- test1.php - lives here: http://www.website1.com/test1.php
- cron job runs test1.php
- test1.php runs and calls test2.php which lives here: http://www.website2.com/test2.php
- test2.php runs and does a simple query and emails results.
how do i call test2.php to run from the other website?
Basically, I have cron access on one server, but not on another and want to run a daily report on the server without cron access.
Is there a simply way to do this and how?
example:
- test1.php - lives here: http://www.website1.com/test1.php
- cron job runs test1.php
- test1.php runs and calls test2.php which lives here: http://www.website2.com/test2.php
- test2.php runs and does a simple query and emails results.
how do i call test2.php to run from the other website?