sjsteve33171 Posted July 28, 2010 Share Posted July 28, 2010 Hi i've recently moved hosting servers as I had severe lag issues with my shared hosting. Since i've brought a dedicated linux server with apache and php. Since the move i get extra chars with the following code <?PHP define( "MESSAGE", "Testing Testing 123" ); if(isset($_GET['message'])) { die(MESSAGE); } ?> My application SHOULD receive back "Testing Testing 123" like it used to with my old shared hosting. Instead now it receives the following: 2f Testing Testing 123 0 And i cannot figure this out for the life of me. I'm expecting something silly to be the cause but would appreciate some guidance on this. Thanks Link to comment https://forums.phpfreaks.com/topic/209158-extra-chars-in-output/ Share on other sites More sharing options...
ChemicalBliss Posted July 28, 2010 Share Posted July 28, 2010 is that the source code or what appears on screen? Is it the Constant itself? ie, <?PHP define( "MESSAGE", "Testing Testing 123" ); if(isset($_GET['message'])) { die("test message"); } ?> -cb- Link to comment https://forums.phpfreaks.com/topic/209158-extra-chars-in-output/#findComment-1092331 Share on other sites More sharing options...
sjsteve33171 Posted July 28, 2010 Author Share Posted July 28, 2010 It's the content of the script itself. I've attached it for you. Thank You [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/209158-extra-chars-in-output/#findComment-1092333 Share on other sites More sharing options...
sjsteve33171 Posted July 28, 2010 Author Share Posted July 28, 2010 Incase it'll help my header: HTTP/1.1 200 OK Date: Wed, 28 Jul 2010 21:57:50 GMT Server: Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1 13 Testing Testing 123 0 Link to comment https://forums.phpfreaks.com/topic/209158-extra-chars-in-output/#findComment-1092346 Share on other sites More sharing options...
ChemicalBliss Posted July 28, 2010 Share Posted July 28, 2010 There is nothing in that script that would cause that output. Try different variations of the script with different text and output. -cb- Link to comment https://forums.phpfreaks.com/topic/209158-extra-chars-in-output/#findComment-1092349 Share on other sites More sharing options...
sjsteve33171 Posted July 28, 2010 Author Share Posted July 28, 2010 There is nothing in that script that would cause that output. Try different variations of the script with different text and output. -cb- Any ideas on what on the server could be causing it? Link to comment https://forums.phpfreaks.com/topic/209158-extra-chars-in-output/#findComment-1092357 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.