Jump to content

Why do PHP scripts often completely cease to function when I edit them?


goodrichdesigns

Recommended Posts

Okay, I've literally wondered this for years now, I've never found out why.

 

This has happened quite a lot. Imagine I download a script, say a content management script. I make a simple change in the script and then suddenly on refresh the entire script is just not working. No error messages, no dis-jointed code...nothing....just blankness when I attempt to view it in my browser. I then assume I've inserted some incorrect code in which I undo my action(s) and then re-save back to it's original state. What then baffles me the most is that the code still then does not work.

 

So can anyone tell me why this does this? It has happened to me on different machines with different PHP scripts. Why does it do this and how do I get around it?

I use Dreamweaver CS3 to edit PHP code on a Macintosh however I've encountered this kind of scenario using Windows XP before as well.

 

It can't have anything to do with the changes I'm making because it still doesn't work even after I undo changes and revert back to the original code.

I use BBEdit on Mac and never have a problem. My thought was that maybe your editor is replacing Unix-style carriage returns with Windows/DOS-style, but apparently not. Dreamweaver + PHP problems seem to be rather common around here...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.