FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » file being saved causes fatal error.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: file being saved causes fatal error. [message #179725 is a reply to message #179724] Wed, 28 November 2012 17:30 Go to previous messageGo to previous message
Robert Heller is currently offline  Robert Heller
Messages: 60
Registered: December 2010
Karma:
Member
At Wed, 28 Nov 2012 07:57:23 -0800 (PST) rodeored <info1(at)reenie(dot)org> wrote:

>
> On Tuesday, November 27, 2012 10:42:27 PM UTC-5, Jerry Stuckle wrote:
>>
>> No. It's not PHP causing the problem - it's the OS. While the file is
>>
>> being saved, a good OS will prevent any other process from reading the
>>
>> file. Otherwise the other process may get part new, part old.
>>
>>
>>
>> Before changing ANY files on a live system you should first take the
>>
>> system offline, then make you changes, and bring the system back online.
>>
>>
> Thank you for your response. What is the system or mechanism for preventing other process from reading a file being saved called? This is on a Linux operating system on an Amazon server.
> If a good OS will prevent any other process from reading the file, then why does the system have to be taken off line?

Not the whole O/S, but generally when a CMS system (eg WordPress) is
updating itself, it puts the site in 'maintainence mode', presenting a
'This site is currently offline for maintainence' type of page.
Typically, this only lasts for a short time (maybe a couple of minutes
or so) while the php files for the update are downloaded, unpacked, and
the things like the database updated as needed. You generally don't
want people visiting your web site while the code (php files) that
implement it are 'in flux' (being updated).

>

--
Robert Heller -- 978-544-6933 / heller(at)deepsoft(dot)com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Experience Web and Smartphone designer required
Next Topic: [Windows] php-cgi.exe can't find extension
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 11:48:38 GMT 2024

Total time taken to generate the page: 0.04953 seconds