I'm trying to create a backup solution for myself, came across http://php.net/fwrite and I've modified it slightly to suit my needs. At the moment my backup file is in my httpdocs folder which means if a user was to know the filename they would be able to download it. Does anyone know how I would be able to modify the script so that the script can access the folder above my httpdocs folder?
i have no knowledge about the script u use but if i make backups i do them either via cronjob or SSH ( via SSH i call a script i place on the server in another access-restricted folder ... hence the backup is made ON server and can be storred in a access-restricted area on the server - withint the htdocs area just create an access controlled folder first then create your back up into that folder it might even work with the scrript you use currently
hey thanks for the reply hans im aware of the other options, jus dont want to go that way. ill leave it as it is for now, there's a good chance a user cant figure out the filename.