Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Programming. | 3 guests |
Acmlm's Board - I2 Archive - Programming - | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
windwaker Ball and Chain Trooper WHY ALL THE MAYONNAISE HATE Level: 61 Posts: 629/1797 EXP: 1860597 For next: 15999 Since: 03-15-04 Since last post: 4 days Last activity: 6 days |
| ||
? ? This keeps appearing at the top of my site >_x. I know it can be caused when you use cookies or something, but I'm not using cookies. I'm just using a math function I wrote and $_GET. Anyone seen this before? Edit: eck, evidently it's because I require "function.php"; for the function, which's in function.php of course =P. If I remove the "require", it doesn't seem to care echo ? at the top of the page. What's wrong with this? (edited by windwaker on 12-14-04 10:04 PM) |
|||
Vystrix Nexoth Level: 30 Posts: 195/348 EXP: 158678 For next: 7191 Since: 03-15-04 From: somewhere between anima and animus Since last post: 3 days Last activity: 2 days |
| ||
well, as I explained to you on IRC, it's what's called the "Byte Order Mark" used by Unicode. What it does is it indicates that (1) the text uses the Unicode character repertoire, and (2) it uses the UTF-8 format for rendering Unicode text into bytes (others are UTF-16BE, UTF-16LE, and UTF-32BE/LE). however, it is not required, because the character encoding can be specified in other ways (e.g. a <meta> element in HTML).PHP, meanwhile, outputs anything that's not inside <?php ?> as straight HTML. this includes the byte order mark that's present at the very beginning of the file.you should configure your text editor to not output the BOM. if it doesn't provide that option, then either (1) switch it to use a non-Unicode encoding (such as ISO-8859-1) or (2) get a better text editor. |
|||
windwaker Ball and Chain Trooper WHY ALL THE MAYONNAISE HATE Level: 61 Posts: 673/1797 EXP: 1860597 For next: 15999 Since: 03-15-04 Since last post: 4 days Last activity: 6 days |
| ||
Yeah, I cahnged to ISO-8859-1 with PHPEd, and I think TextPad uses some US encoding thing, and I'm using that from now on. Thanks tons for your help; I don't know what I would do if you hadn't have told me this . |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Programming - | | | |