Without willingly wanting to get someone to correct my PHP code (see thread at http://community.apachefriends.org/f/viewtopic.php?f=16&t=50665 - don't know how to insert link using the forum CMS) I have come across a situation where xampp does not allow a file to be created on open in php - i.e. with this statement:- $handle = fopen($filename,'w+'); the error message produced is...
Warning: fopen(backup/dbbackup_16.10.2012_13:57:40_all.sql) [function.fopen]: failed to open stream: Invalid argument in C:\xampp\htdocs\MMM\CMS\backup.php on line 115
When I upload and run from the server, everything is fine (the non-existent file is created).
Has it to do with file permissions within Xampp?