Jump to content

PHP5.1->PHP5.2


Recommended Posts

Hey,

 

 

 

I have just upgrade my server to PHP5.2.3 and I have encoutered a scripting error where it is adding extra "<" and ">" to the top of the HTML code when before on PHP5.1.x it was fine. It must be a server php cfg issue, however I'm not sure what the issue is. The code for the page is below;

 

 

 

<?php

session_start();

include("header.php");

?>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>

 

 

 

The HTML Code that is sent to the browser is below;

 

<<?>>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>

 

 

 

I have check header.php, and nothing is wrong. No errors occur but I have another PHP File for the adminsitration of the site and the top of the file is below:

 

 

 


<?php

session_start();

include("header.php");

if (!$sess_userid || $sess_account_status < 4) {

$admin_error = 1;

}

$sql_admincheck = mysql_query("SELECT id FROM pvp_admins WHERE userid='$sess_userid' LIMIT 1");

$num_admincheck = mysql_num_rows($sql_admincheck);

if ($num_admincheck < 1) {

$admin_error = 1;

}

?>

<html>

<head>

 

 

 

However, that gives me a header issue, saying the header has already been sent. The HTML Code sent to browser is below:

 

<<br />

<b>Warning</b>:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/admin/domains/livepvp.com/public_html/alpha/admin.php:1) in <b>/home/admin/domains/livepvp.com/public_html/alpha/admin.php</b> on line <b>2</b><br />

<<?>><html>

 

 

 

The PHPInfo for the server is at http://alpha.livepvp.com/phpinfo.php, and the old phpinfo is at http://www.smashctrl.com/phpinfo.php

 

 

 

Any ideas? I have racked my brains over this one and I have no idea what the issue could be.

 

 

 

Thanks

 

Link to comment
Share on other sites

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.