Jump to content

Recommended Posts

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

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

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.