开发者

How can I make cron jobs to POST to a url through PHP scripts?

开发者 https://www.devze.com 2023-04-07 04:56 出处:网络
I am not sure how I can assign cron jobs through PHP script AND have that cron job POST to a PHP script. Any ideas? Also, what would I need to tell my webhost people? usually If i want to allow one or

I am not sure how I can assign cron jobs through PHP script AND have that cron job POST to a PHP script. Any ideas? Also, what would I need to tell my webhost people? usually If i want to allow one or more PHP script to have write access to a csv or textfile I ask them t开发者_如何学JAVAo allow that csv or textfile to have apache writes. For this cron PHP script what would I need to ask them?


I imagine you'd want to use cURL - it should be installed as an extension for your php.

http://www.php.net/manual/en/function.curl-setopt.php has all the options for making a web request - browse through them at your leisure.

http://www.ipragmatech.com/post-form-data-java-php-curl.html has a quick example for doing so.

0

精彩评论

暂无评论...
验证码 换一张
取 消