Forum Moderators: coopster

Message Too Old, No Replies

Editor messing with my php files?

Is this a common problem?

         

Frequent

4:12 pm on Feb 16, 2005 (gmt 0)

10+ Year Member



Normally, I edit my whatever.php files with notepad via ftp for small changes and have never had a problem.

The other day I made a minor change using my hosts on-line file editor and started to have major errors on the site. After troubleshooting, it turns out that a few empty lines were added to the end of my whatever.php file and this was causing the errors.(not setting cookies, unable to log in, etc.)

Is this a common problem?

Freq---

jatar_k

5:49 pm on Feb 16, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I wouldn't think so, Notepad and similar text editors aren't really that smart so it is possible that some strange character could be misinterpreted but it wouldn't go adding new lines by itself.

Frequent

6:01 pm on Feb 16, 2005 (gmt 0)

10+ Year Member



Thanks jatar_k,

It really is puzzling. Everything was working fine, I logged into my hosting account, I opened the file using their editor, scrolled down and found the line I needed to change, changed an 8 character login id, and hit save.

Went back to the site and all heck broke loose.

After tracking the problem down and deleting those mysterious spontaneous lines all is back to normal.

I am stumped. I have no proof that the hosts editor is too blame but you can bet I will not use it again, just in case.

jatar_k

6:06 pm on Feb 16, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



sorry Frequent, I actually answered completely wrong, I kinda missed this somehow

>> using my hosts on-line file editor

I was referring to notepad adding lines

Online editors, yes 100% can do that, they actually think they are smarter than you. ;)

I have definitely had, and seen, this problem many times before