I'm working on a php application and when setting it up for the first time it writes a file (system_info.php) to the server that stores several details of the system it is being installed in.
If the server is not writable I would like to print this configuration on a text area and prompt the user to create the file system_info.php on the top level directory of this application on the server and paste the configuration in it.
How or what is the best way to test if the server is writable?
Thanks
sureronald