goodrichdesigns Posted April 14, 2008 Share Posted April 14, 2008 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? Link to comment https://forums.phpfreaks.com/topic/101107-why-do-php-scripts-often-completely-cease-to-function-when-i-edit-them/ Share on other sites More sharing options...
p2grace Posted April 14, 2008 Share Posted April 14, 2008 Best guess is syntax errors. Check the php error log. Link to comment https://forums.phpfreaks.com/topic/101107-why-do-php-scripts-often-completely-cease-to-function-when-i-edit-them/#findComment-517084 Share on other sites More sharing options...
discomatt Posted April 14, 2008 Share Posted April 14, 2008 Cursed? Link to comment https://forums.phpfreaks.com/topic/101107-why-do-php-scripts-often-completely-cease-to-function-when-i-edit-them/#findComment-517086 Share on other sites More sharing options...
BlueSkyIS Posted April 14, 2008 Share Posted April 14, 2008 it may have to do with what operating system and code editor you're using. Link to comment https://forums.phpfreaks.com/topic/101107-why-do-php-scripts-often-completely-cease-to-function-when-i-edit-them/#findComment-517088 Share on other sites More sharing options...
goodrichdesigns Posted April 14, 2008 Author Share Posted April 14, 2008 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. Link to comment https://forums.phpfreaks.com/topic/101107-why-do-php-scripts-often-completely-cease-to-function-when-i-edit-them/#findComment-517108 Share on other sites More sharing options...
BlueSkyIS Posted April 14, 2008 Share Posted April 14, 2008 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... Link to comment https://forums.phpfreaks.com/topic/101107-why-do-php-scripts-often-completely-cease-to-function-when-i-edit-them/#findComment-517134 Share on other sites More sharing options...
goodrichdesigns Posted April 15, 2008 Author Share Posted April 15, 2008 Okay thanks I will give BBEdit a try Link to comment https://forums.phpfreaks.com/topic/101107-why-do-php-scripts-often-completely-cease-to-function-when-i-edit-them/#findComment-517553 Share on other sites More sharing options...
Orio Posted April 15, 2008 Share Posted April 15, 2008 Maybe these systems turn error reporting to minimum. This way you don't see the error. Try using: error_reporting(E_ALL); Should shed some light. Orio. Link to comment https://forums.phpfreaks.com/topic/101107-why-do-php-scripts-often-completely-cease-to-function-when-i-edit-them/#findComment-517559 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.