What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP problem, getting: 

PHP problem, getting: 
Author: Message:
lordy
Senior Member
****


Posts: 853
Reputation: 24
35 / Male / Flag
Joined: Jul 2004
Status: Away
O.P. PHP problem, getting: 
OK I have the following code:

code:
<?php
$download = $_GET['download'];

if (empty($download)) {
require_once("downloads_index.php");
}
?>

and that puts the file in fine, however for some reason, just above where the file is being included, I get these characters: 

I have no idea what could be causing that... so if anyone else has any idea? :)
03-07-2006 02:56 AM
Profile E-Mail PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: PHP problem, getting: 
are you sure its not a problem in downloads_index.php?
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
03-07-2006 04:14 AM
Profile PM Web Find Quote Report
lordy
Senior Member
****


Posts: 853
Reputation: 24
35 / Male / Flag
Joined: Jul 2004
Status: Away
O.P. RE: PHP problem, getting: 
downloads_index.php doesnt contain any php, only pure HTML... a table and some other text
03-07-2006 04:40 AM
Profile E-Mail PM Find Quote Report
lordy
Senior Member
****


Posts: 853
Reputation: 24
35 / Male / Flag
Joined: Jul 2004
Status: Away
O.P. RE: PHP problem, getting: 
I found the problem, downloads_index.php was encoded in UTF-8, where as the file it was being included into was encoded in ANSI
03-07-2006 04:50 AM
Profile E-Mail PM Find Quote Report
rav0
Veteran Member
*****

Avatar
i have an avatar

Posts: 1419
Reputation: 29
35 / Male / Flag
Joined: Aug 2003
RE: PHP problem, getting: 
Those characters are from the file that's being included. If you try to view a Unicode BOM (a binary code that's at the begining of a file) as though it were ANSI text (or a bunch of other encodings), "" is something that you might end up with.

Get your editor to save downloads_index.php without a BOM, or save it as ANSI. You can open it with Windows Notepad, and then copy the text into a new file and save the new file.
| [Image: dorsh] |

(\ /)
(O.o)
(> <)

This is Bunny. Copy Bunny into your signature to help him on his way to world domination
03-07-2006 04:52 AM
Profile E-Mail PM Web Find Quote Report
lordy
Senior Member
****


Posts: 853
Reputation: 24
35 / Male / Flag
Joined: Jul 2004
Status: Away
O.P. RE: PHP problem, getting: 
lol thanks, I posted that i solved theproblem just before you posted that solution, and yes it was to do with the encoding. thanks anyway :)
03-07-2006 04:59 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On