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

  1. send post request curl login page. specify curl keep cookies (cookie jar, read manual exact syntax).

  2. 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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -