? about page loading

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 16
Joined: Wed Feb 12, 2003 5:27 am
Location: Cornwall, England

Wed Apr 09, 2003 2:28 am

A common problem I find when adding headers is if there is a whitespace before the starting PHP tag.
For example:

Code: Select all


header('Location: http://www.php.net/');

This whitespace is counts as an output and is sent to the browser, thus generating the header error message.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests