sepoto Posted October 22, 2010 Share Posted October 22, 2010 The Bull Penn Mexican Sports Grill <-- Return from fgets();Do you guys see the garbage characters. Well I'm on Windows7 using EasyPHP. Everything is working so well other than this I would really not like to change my programs or OS. My plain text file only contains "The Bull Penn Mexican Sports Grill". Also this only happens on the first iteration of fgets(). Strange. What say all you other PHP'ers? Link to comment Share on other sites More sharing options...
jeffman Posted October 22, 2010 Share Posted October 22, 2010 I think you should not have started a new thread, but simply bumped the old one.I think it would help to know exactly how your text file is being generated.Do the funny chars show up if you access the file directly (address in your URL bar) ?You might try the following, which should output the ASCII values of the first three characters:$str = fgets($handle);echo ord($str[0]) . '<br>';echo ord($str[1]) . '<br>';echo ord($str[2]);Knowing those values might give some insight into the problem. I'm not sure how, but . . . Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.