Heya. I’m having a little bit of trouble saving data I’m sending over post to files using a php script on my web server. I’m sending the following data to the server (servername, directory, filename, filedata) and this is the script on my server I’m using.
$file = “game/servers/” . $_POST[“servername”] . “/” . $_POST[“directory”] . “/” . $_POST[“filename”];
$fp = fopen($file, “a”);
$data = $_POST[“filedata”];
When I go to check the folder on the server after the data has been supposedly sent, there are no new files or anything in the folder indicating that something’s going wrong. Can anybody offer me any suggestions?