ahamednishadh Posted February 17, 2008 Share Posted February 17, 2008 HI! IM NEW IN HERE. N E WAY THIS IS MY QUESTION. I HAVE A PHP PAGE AND AN EXTERNAL PHP SCRIPT PAGE. I USED DA FOLLOWING CODE TO CONNECT DA EXTERNAL SCRIPT TO MY PAGE. <?php include ("scores.php"); ?> AND I CALLED A VARIABLE THAT IS IN DA SCRIPT INSIDE MY PAGE USING DA ECHO WORD. NOW MY PROBLEM IS DAT WHERE EVER I PUT DA CODE <?php include ("scores.php"); ?> I GET AN STRING PRINTED ON MY PAGE SUCH AS  EVEN IF I PUT IT IN DA HEADER SECTION OF MY MY PAGE I GET THIS AND IT COME ON DA TOP OF DA PAGE. HOW TO I GET RID OF IT?? THANKS IN ADVANCE!! Quote Link to comment https://forums.phpfreaks.com/topic/91524-output-error/ Share on other sites More sharing options...
Chris92 Posted February 17, 2008 Share Posted February 17, 2008 Sometimes programs decide to add random stuff into your code, I know from experience older versions of dreamweaver had a habbit of doing this, open your code in notepad and check to see if  is at the top of it. Quote Link to comment https://forums.phpfreaks.com/topic/91524-output-error/#findComment-468804 Share on other sites More sharing options...
AndyB Posted February 17, 2008 Share Posted February 17, 2008 @ ahamednishadh TAKE THE CAPS LOCK OFF for heaven's sake. We're not deaf! Quote Link to comment https://forums.phpfreaks.com/topic/91524-output-error/#findComment-468806 Share on other sites More sharing options...
ahamednishadh Posted February 17, 2008 Author Share Posted February 17, 2008 @ ahamednishadh TAKE THE CAPS LOCK OFF for heaven's sake. We're not deaf! sorry abt it!! i was typing a document in caps and then i came over here and forgot to take da caps off! sorry! Quote Link to comment https://forums.phpfreaks.com/topic/91524-output-error/#findComment-468809 Share on other sites More sharing options...
ahamednishadh Posted February 17, 2008 Author Share Posted February 17, 2008 Sometimes programs decide to add random stuff into your code, I know from experience older versions of dreamweaver had a habbit of doing this, open your code in notepad and check to see if  is at the top of it. im not using dreamweaver. and also dat small piece of string comes in any place where i put da code to include my external script. if i put it inside a table it comes there. if i put it in da bottom of da page it comes there. pls help! Quote Link to comment https://forums.phpfreaks.com/topic/91524-output-error/#findComment-468813 Share on other sites More sharing options...
Chris92 Posted February 17, 2008 Share Posted February 17, 2008 Then it is obviously on scores.php Quote Link to comment https://forums.phpfreaks.com/topic/91524-output-error/#findComment-468814 Share on other sites More sharing options...
ahamednishadh Posted February 17, 2008 Author Share Posted February 17, 2008 Then it is obviously on scores.php its not there either. this is my scores.php page <? $presentTotal=500; $overs=20; ?> Quote Link to comment https://forums.phpfreaks.com/topic/91524-output-error/#findComment-468816 Share on other sites More sharing options...
wildteen88 Posted February 17, 2008 Share Posted February 17, 2008 If you are getting strange characters like:  outputted and their not within your PHP code then make sure you are saving your .php files as ANSI encoding and not UTF-8. I have had this issue before awhile back and it was to do with file encoding when saving. Quote Link to comment https://forums.phpfreaks.com/topic/91524-output-error/#findComment-468938 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.