Click here to Skip to main content
15,903,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,

I want to execute a redirect a URL in which i have to call a gateway server in order to send a sms. The Server on which i want to redirect a url is Linux based and the file code is on PHP. The particular php file is executed as a cron job.

As a cron job runs in backgroud, we are not able to redirect (Response.redirect("url") not allowed). how one will be able to do the above task then?

Thanks

Varun Sareen
Software Developer
Posted

1 solution

Redirection is meaningless if you run the php file as a cron job. let the cron task execute the other php file also.

Have a look at wget.

Check http://www.htmlcenter.com/blog/running-php-scripts-with-cron/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900