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 #179726 is a reply to message #179724] Wed, 28 November 2012 17:52 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 11/28/2012 10:57 AM, rodeored 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?
>

When a file is being updated, the file will generally be locked by the
OS. Attempts to access it by other processes will return a lock error.

So you need to take other processes which may access the file (the
website, in this case) down while the update is being performed, or get
an error if someone tries to access it.

This has nothing to do with PHP. It's the OS doing it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Thu Nov 28 05:16:04 GMT 2024

Total time taken to generate the page: 0.03936 seconds