i’m developing a PHP web application that i recently launched into a remote shared hosted server. However, i’m constantly updating it using Dreamweaver on my development machine. Whenever i use PUT to update a file on the server for example config.php, i think at that same time there are requests on the file already causing php fatal errors.
How can i avoid this? Please help. Thank you.
i’m developing a PHP web application that i recently launched into a remote shared
Share
You need to find program, which will upload file with a suffix in the name (e.g. “filename.ext.!part“) and only after uploading will rename existing file.
At this moment I don’t remember existing solution, as variant you can try to play with this: http://winscp.net/eng/docs/script_commands
Another variant is using APC accelerator with
apc.stat = 0– cached copy of executable code of your scripts will be updated when server will restart. It’s less comfortable way, of course.Also, Dreamweaver isn’t best IDE – try to use NetBeans (free) or PhpStorm (commercial).