cmiddlebrook Posted April 7, 2010 Share Posted April 7, 2010 I have a Zend Application that runs on the web and allows the users to setup jobs that get put into a database in a queue system. Currently I use a cron job on my web server to run a script which runs an 'engine' which is basically just a script that takes jobs from the database queue and processes them. The problem is, my website has limited memory and I can only run a few copies of the engine concurrently before it runs low on memory. I can buy a better server but this is expensive and it occurs to me that I could use my local PC or even my laptop to run the same script. Is this possible? I have xampp installed on my local machines so the local development environment is virtually the same as that on the live server. Can I setup some kind of scheduled task on my local machine (like a cron job on my web server) to run the engine script? Thanks, Caroline Link to comment https://forums.phpfreaks.com/topic/197848-running-a-webserver-script-on-a-local-machine/ Share on other sites More sharing options...
trq Posted April 7, 2010 Share Posted April 7, 2010 Can I setup some kind of scheduled task on my local machine (like a cron job on my web server) to run the engine script? Of course, Linux has Cron & Windows has Task Scheduler. Link to comment https://forums.phpfreaks.com/topic/197848-running-a-webserver-script-on-a-local-machine/#findComment-1038317 Share on other sites More sharing options...
cmiddlebrook Posted April 9, 2010 Author Share Posted April 9, 2010 That's good to know, do you know the syntax I would use on a windows machine? I've tried downloading the windows version of the lynx browser so that I can use a similar command line that I would use on my linux server but that's not working. When I issue the following command: "lynx -source http://mysite.com/myphpfile.php" It outputs the response that my site gives when there is a file not found error. Any ideas? Thanks, Caroline Link to comment https://forums.phpfreaks.com/topic/197848-running-a-webserver-script-on-a-local-machine/#findComment-1039452 Share on other sites More sharing options...
jcbones Posted April 9, 2010 Share Posted April 9, 2010 http://www.iopus.com/guides/winscheduler.htm Link to comment https://forums.phpfreaks.com/topic/197848-running-a-webserver-script-on-a-local-machine/#findComment-1039454 Share on other sites More sharing options...
cmiddlebrook Posted April 9, 2010 Author Share Posted April 9, 2010 Thank you, I've had a read of that article but I can't see any info there specifically on running PHP scripts. I think the issue is that I'm trying to run a remote script from my local PC. Running the PHP exe doesn't work as that is looking for a local path on the local machine and it doesn't recognise a URL as the path. Caroline Link to comment https://forums.phpfreaks.com/topic/197848-running-a-webserver-script-on-a-local-machine/#findComment-1039460 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.