Jump to content

Recommended Posts

Posted
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?

 

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...