gibs Posted August 17, 2007 Share Posted August 17, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/65448-php51-php52/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.