...

View Full Version : How To Make a PHP script Autorun?



majaal
01-10-2012, 02:22 PM
Hi all !

I have recently bought a script which functions in the following manner:

1. Searches for all the available items that are listed in a txt file.
2. Buys them (by login into an account preloaded with funds) if they are available, else proceeds ahead without buying it (if unavailable , obviously!).

The thing is that the nature of these items are such that they keep on coming at regular intervals and gets bought within a few minutes of their arrival, so I required a script that can grab them as soon as they are available. This would require the script to automatically run itself every 5-10 minutes to check their availability and purchase them using the account as soon as it traces them.

The guy who wrote the script told me that there is some cron job in cpanel that can do it but he is not in good health these days and I have to wait for a few days till he fixes it. So, I thought it would be better, if I can try to fix it myself. But me being a complete noob in it require some help ! I will really appreciate if someone can help me out in this matter.

Thanks in advance.

BluePanther
01-10-2012, 02:46 PM
timlinden.com/blog/website-development/php-cron-jobs-with-cpanel/

From a quick Google search :)

mlseim
01-10-2012, 02:51 PM
Sounds like a snipe script ...

The best I can come up with is to use PHP CURL:
http://www.catswhocode.com/blog/10-awesome-things-to-do-with-curl

It's going to be a lot of scripting, testing, and hit-or-miss troubleshooting.

You say you're a complete "noob", so I'm guessing you won't be doing it.
I suppose you can hire a programmer though.

BluePanther
01-10-2012, 02:55 PM
Sounds like a snipe script ...

The best I can come up with is to use PHP CURL:
http://www.catswhocode.com/blog/10-awesome-things-to-do-with-curl

It's going to be a lot of scripting, testing, and hit-or-miss troubleshooting.

You say you're a complete "noob", so I'm guessing you won't be doing it.
I suppose you can hire a programmer though.

He already has the script - just needs to add it to the crontab.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum