Can anyone see anything wrong with this? A number is sent to the file from an application but the PHP isnt saving it to the text file like it should >.<
Edit by Robbie! (Forum Super Moderator): Moved to Coding Help, please post in the correct section next time. Thanks!PHP Code:<?php
$num = $_POST [‘MyNumber’];
$myFile = “lol.txt”;
$fh = fopen($myFile, ‘w’) or die(“can’t open file”);
fwrite($fh, "My Number is: ");
fwrite($fh, $num);
fclose($fh);
?>





Reply With Quote




