PHP file modifying itself or open files?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mastab0323
Forum Newbie
Posts: 3
Joined: Thu Jun 30, 2005 2:38 pm

PHP file modifying itself or open files?

Post by mastab0323 »

Thanks for your time in advance. Any help I can get on this issue is greatly appreciated.

I spent a few months writing software for my company and now its all said and done. This software is going to be on servers all over the world. So in order to keep my software up to date I wrote an update system for it. Each copy of my software will communicate back to our update server to check for updates. If there are updates, the update server will send back php code for it to parse/evaluate. This code is what performs the updates.

So lets say I want to update the file thats evaluating the code and performing the updates.

Is this possible?

I heard that files are loaded into the RAM upon execution and therefore you are able to edit the file. I'm pretty sure this is true in linux machines, but I wasnt sure if it was true for windows or other server OS's.

Thanks a lot.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I believe that's true.
Post Reply