But wait ed hardy t-shirts , you want to use it in a crontab, which is run from the command line. You can't just do something like:
php get.php?
Because it'll try looking for a *file* named all that, complete with the question mark and all. So what if you have ten different URLs to grab off ten different crontabs, but you only want one script.
How would you do all that? It's a long brutal ordeal so prepare yourself. Ready? prada slippers
php get.php
Yeah, that's all there is to it. PHP's pretty cool like that, it takes the arguments after the file name and stores them in the same array you'd check anyway.
One thing you might notice is that every time you run PHP from the command line louis vuitton it gives you something like this:
Content-type: text/html
X-Powered-By: PHP/4.3.3
your output here...
php get.php?
Because it'll try looking for a *file* named all that, complete with the question mark and all. So what if you have ten different URLs to grab off ten different crontabs, but you only want one script.
How would you do all that? It's a long brutal ordeal so prepare yourself. Ready? prada slippers
php get.php
Yeah, that's all there is to it. PHP's pretty cool like that, it takes the arguments after the file name and stores them in the same array you'd check anyway.
One thing you might notice is that every time you run PHP from the command line louis vuitton it gives you something like this:
Content-type: text/html
X-Powered-By: PHP/4.3.3
your output here...