Jump to content

Recommended Posts

Here's the code 

echo "calling www.rowledgecricketclub.com";
 header("Location:www.rowledgecricketclub.com");

 

I get the echo, but the new page doesn't open - it stays with a blank screen showing the current address at the top

 

Why doesn't the new page open?

 

Many thanks

 

 

Did you try using the complete address, including the protocol?

header("Location: http://www.rowledgecricketclub.com/");

 

Have you tried enabling all PHP errors/warnings? This would go at near the top of your PHP script, within the PHP tags.

//REPORT ALL PHP ERRORS
error_reporting(E_ALL);
ini_set('display_errors', 1);

 

Be sure to remove the above debugging code when you're done testing.

It appears that you have made a change to your code which is causing it to fail.  You did not mention that - you said it has worked for years.

  I did as CyberRobot suggested and it works fine for me.  Although one cannot do an echo before calling a header.

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.