I have the code here for you to see, it is a script check. The page is showing the following symbols at the top left hand corner of the page:  Code (markup): This page is added to all pages that require a script check (probe.php): <?php include_once("database.php"); include_once("functions.php"); logincheck(); echo"<link href=in.css rel=stylesheet type=text/css>"; $username=$_SESSION['username']; $fetch=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$username'")); if ($fetch->last_script_check < time()){ $eancol = rand(1,5); if($eancol == "1"){ $colour = "RED"; }elseif($eancol == "2"){ $colour = "BLUE"; }elseif($eancol == "3"){ $colour = "YELLOW"; }elseif($eancol == "4"){ $colour = "GREEN"; }elseif($eancol == "5"){ $colour = "ORANGE"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <style type="text/css"> <!-- .style6 {color: #808080} --> </style> <head> <title>Untitled 1</title> <style type="text/css"> .style3 { text-align: center; border: 1px solid #000000; background-color: #808080; } .style4 { text-align: center; border: 1px solid #000000; background-color: #666666; } .highlight { text-align: center; border: 1px solid #000000; background-color: #CC0000; } .style5 { font-size: 12px; font-weight: bold; color: $colour; } </style> </head> <body> <form method="post" action=""> <table border="1" align="center" cellpadding="0" cellspacing="0" style="width: 50%"> <tr> <td height="21" colspan="4" class=header class="style3"><center>Script Checker</td> </tr> <tr> <td class="style4" colspan="4">Tick the radio box in <b><?php echo"<font color=$colour>$colour</font>";?></b></td> </tr> <tr> <td align="center" bgcolor="<?php if($fetch->ver_code == "1"){ echo"$colour"; }else{ echo"#808080"; }?>" style="width: 25%; height: 38px"><input name="radio" type="radio" class="style6" value="1" /></td> <td align="center" bgcolor="<?php if($fetch->ver_code == "2"){ echo"$colour"; }else{ echo"#808080"; }?>" style="width: 25%; height: 38px"><input name="radio" type="radio" value="2" /></td> <td align="center" bgcolor="<?php if($fetch->ver_code == "3"){ echo"$colour"; }else{ echo"#808080"; }?>" style="width: 25%; height: 38px"><input name="radio" type="radio" value="3" /></td> <td align="center" bgcolor="<?php if($fetch->ver_code == "4"){ echo"$colour"; }else{ echo"#808080"; }?>" style="width: 25%; height: 38px"><input name="radio" type="radio" value="4" /></td> </tr> <tr> <td align="center" bgcolor="<?php if($fetch->ver_code == "5"){ echo"$colour"; }else{ echo"#808080"; }?>" style="width: 25%; height: 38px"><input name="radio" type="radio" value="5" /></td> <td align="center" bgcolor="<?php if($fetch->ver_code == "6"){ echo"$colour"; }else{ echo"#808080"; }?>" style="width: 25%; height: 38px"><input name="radio" type="radio" value="6" /></td> <td align="center" bgcolor="<?php if($fetch->ver_code == "7"){ echo"$colour"; }else{ echo"#808080"; }?>" style="width: 25%; height: 38px"><input name="radio" type="radio" value="7" /></td> <td align="center" bgcolor="<?php if($fetch->ver_code == "8"){ echo"$colour"; }else{ echo"#808080"; }?>" style="width: 25%; height: 38px"><input name="radio" type="radio" value="8" /></td> </tr> <tr> <td align="center" bgcolor="<?php if($fetch->ver_code == "9"){ echo"$colour"; }else{ echo"#808080"; }?>" style="width: 25%; height: 38px"><input name="radio" type="radio" value="9" /></td> <td align="center" bgcolor="<?php if($fetch->ver_code == "10"){ echo"$colour"; }else{ echo"#808080"; }?>" style="width: 25%; height: 38px"><input name="radio" type="radio" value="10" /></td> <td align="center" bgcolor="<?php if($fetch->ver_code == "11"){ echo"$colour"; }else{ echo"#808080"; }?>" style="width: 25%; height: 38px"><input name="radio" type="radio" value="11" /></td> <td align="center" bgcolor="<?php if($fetch->ver_code == "12"){ echo"$colour"; }else{ echo"#808080"; }?>" style="width: 25%; height: 38px"><input name="radio" type="radio" value="12" /></td> </tr> <tr> <td height="35" colspan="4" class="style3"><input type="submit" name="submit" class="custombutton" value="Script Check"> <br /> <?php if($_POST['submit'] && $_POST['radio']){ $radio=$_POST['radio']; if($radio != $fetch->ver_code){ $randy = rand(1,12); if($randy == $radio){ $newone = $radio + 1;}elseif($randy != $radio){ $newone = $randy;} if($newone > "12"){ $newone = "11"; } mysql_query("UPDATE users SET ver_code='$newone' WHERE username='$username'"); echo"Wrong box!"; echo"<META http-equiv=\"refresh\" content=\"1;URL=probe.php\">"; }else{ $time=time()+(60*9); $randy = rand(1,12); if($randy == $radio){ $newone = $radio + 1;}elseif($randy != $radio){ $newone = $randy;} if($newone > "12"){ $newone = "11"; } mysql_query("UPDATE users SET last_script_check='$time', ver_code='$newone' WHERE username='$username'"); echo "Correct code!"; echo"<SCRIPT LANGUAGE='JavaScript'> history.go(-1) </script>"; } } ?> <br /> </td> </tr> </table> </form> <?php function script_check($file){ }?> </body> </html> <?php exit(); } ?> PHP: The symbols are shown on all pages that have the script check. Here is what the code looks like to add the script check on one of the pages (ext.php): <?php session_start(); include_once"database.php"; include_once"functions.php"; logincheck(); $username=$_SESSION['username']; include_once"probe.php"; $page="ext.php"; $query1=mysql_query("SELECT * FROM user_info WHERE username='$username'"); $fetch1=mysql_fetch_object($query1); ?> PHP: What is wrong with it for it to show the symbols? Thanks
One of your files was saved with different format/encoding than the others. Included files are no exception.
you have a file save as UTF8, and its being treated as normal windows iso format. The three characters are called the BOM and are found at the beginning of UTF8 files. Previous posters suggested fix is correct.
It is correct. I sometime do the same mistake like this. Your text editor has options to select w/o or w BOM.
Thanks guys, I was having this problem on one of my sites and just happened to come across this post. I found some of my files saved as ANSI, changed it and the characters are gone. The funny thing is that I want even searching for an answer on this, I just was looking in the forum and found this post.
You don't understand how long this has been bothering me haha I solved it myself a few months back but when i got my old scripts back i had the problem again and forgot how i solved it lol But after reading this i remembered what i did haha thanks guys