7Priest7 Posted June 1, 2007 Posted June 1, 2007 From: root@server.heliohost.org (Cron Daemon) To: ********@jesusanswers.com Subject: Cron <priest@server> php \die2.php Date: Fri 06/01/07 09:00 AM Status: 302 X-Powered-By: PHP/5.2.1 Location: http://ctcchat.wmn.cc/die.php Content-type: text/html Why??? Heres die2.php s code <?php header("Location: http://ctcchat.wmn.cc/die.php"); ?> It works fine on my browser http://priest.heliohost.org/die2.php But Its not working WHY?? Does this server not allow redirects? Quote
Ashoat Posted June 1, 2007 Posted June 1, 2007 Header redirects are only compatible with browsers. You are using a direct command through the Cron Daemon - that does not parse HTML, and therefore does not parse HTML headers. Instead of using the php command, you should use the lynx browser built into the OS. Use the command "lynx http://url.com". Quote
Quantum Media LLC Posted June 1, 2007 Posted June 1, 2007 I believe that CPanel has a forward and redirect feature, i am just not too sure if you can redirect or forward just pages. Quote
Ashoat Posted June 1, 2007 Posted June 1, 2007 Point is, HTML headers are useless if the HTML is not parsed in the first place. You need to parse the HTML by using a browser, ie. Lynx (my suggestion earlier). Quote
7Priest7 Posted June 5, 2007 Author Posted June 5, 2007 Ehh I decieded to just use psuedo-cron on the site I needed to work with Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.