PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
If it shows up on your screen like mine it's a bunch of oriental characters mixed with what appears to be readable php code.
I would assume it some sort of file type assocation/mime/character set issue. (Obviously I don't know anything about character sets) Anybody got any ideas how to fix it? I'm on winxp pro and I saved it out of phpDesigner 2006
Last edited by neophyte on Fri Mar 03, 2006 10:36 am, edited 1 time in total.
Anyways....if the original text was ASCII (basic english characters) this shouldn't be happening - probably need a code example to figure it out. Check also if the text is being wrung through any string functions. Typically however, in my limited experience, charset corruption will echo a question mark or two in place of the corrupted character. I say corrupted because PHP without mbstring is useless at non ASCII string manipulation... Onwards to PHP6
That's the weird thing, it appears just fine in phpDesigner. But when I first opened it in FirstPage I got a single weird character and that's it. SO I went back to phpDesigner. The file was saved in a unix format. So I used php designer to save it in a windows format. (Not sure what exactly this does.) Uploaded the files and now the files spit out english characters but no php parsing. Shows the entire file on screen through my browser with out the first <?php tag. Weird. So now I'm stuck. I'm sure it's a local thing.
So I just tried opening them in notepad. File->open and in the pull down .txt files and type ANSI. None of the aforementioned files appeared in the window to open so I tried the other formats: unicode, utf 8. No files show up. I think that might be a problem. The php files only appeared for opening if i selected show all files. So I opened one and got western characters. Saved the file over writing the previous. Uploaded it. Western characters plan text no parsing.