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?
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".
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.
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).
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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now