cron - cronjob running php web application -
using cpanel want setup cronjob. have php page doing import post data. reach import page have pass login page working post data.
can done?
you can create php script accessed via , 2 post requests itself.
you can simulate post request on both login page , import page using php curl.
steps
send post request curl login page. specify curl keep cookies (cookie jar, read manual exact syntax).
after session cookie saved in cookie jar (a file), send post import page, using authentication received first post.
you can find more information curl post here: http://www.electrictoolbox.com/php-curl-form-post/
Comments
Post a Comment