get - Cron with $_GET in Plesk -
i have setup cron in 1 of latest versions of plesk. url cron is: http://www.example.com/admin/cronmanager.php?route=cron/prods/all&key=1234 via plesk dashboard, can set script path , argument. via folder button next script path field, can select file on server, finding correct path easy (example.com/admin/cronmanager.php). $_get variables problem. tried put them in script path, didn’t work. tried:
example.com/admin/cronmanager.php?route=cron/prods/all&key=1234
and
example.com/admin/cronmanager.php route=cron/prods/all key=1234
i tried put $_get in arguments this: route=cron/prods/all key=1234
also didn’t work. google wasn’t able me. in directadmin no problem. correct way of doing this?
if i've right understand set cron task 'run php script' via command line. there no $_get/$_post variables in php command line, because there no http request script.
instead can use 'fetch url' task type , check var_dump($_get):
Comments
Post a Comment