Jump to content

Error 302


7Priest7
 Share

Recommended Posts

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?

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...