• dax702

    (@dax702)


    Just a word of suggestion for everyone. Never ever use notepad to edit php files. I spent the good part of 6 hours trying to figure out one of those white screen warnings. The WP FAQ was right about what the problem was, and that was junk characters at the beginning of my wp-config.php file. However, neither notepad nor notepad++ could see these characters. What’s worse is that the FAQ says “notepad is fine” Well, based on the experience I just had, Notepad is NOT FINE. If you’re going to edit php files, I suggest HTML Kit. It’s free and it saw what the other two programs did not. Hope this posts saves someone some time that I wish I had back…

Viewing 3 replies - 16 through 18 (of 18 total)
  • Pioneer Web Design

    (@swansonphotos)

    It probably all started by copying text with the offending BOM.

    dax702 is right. I have similar problems with that, and I think too that the problem is in notepad++. Got myself mad a couple of times, the php was perfect, still there were displaying errors.
    For example I did a clean code, then after downloading with ftp (filezilla) the code looked like this:

    <?php /* theme options */ global $option_header_logo;global $option_home_banner;global $option_home_banner_y;global $option_header_text;global $option_main_header_text_color; ?>

    I am not sure if that’s a notepad++ problem or not.

    I alway use VIM because it show me strange binary stuff when the encoding is not right. When forced on windows platform i always use notepad++ because its very easy to convert in-out of asccii–utf-8

    Personally i’m always trying to use UTF-8 anyway in my websites both databases and PHP files.

    Sometimes apache/php change content-type back from UTF-8 to Ascii if the PHP file is not recognized as UTF-8.

    My suggestion is to RTFM about Notepad++ and master it
    and maybe always try to save your files as “UTF-8 Without BOM”.

    Or join the penguin power of VIM ??

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘NEVER use notepad to edit php files’ is closed to new replies.