Am I missing something?
| From: | Tyler Longren | Date: | Fri, 07 Jul 2000 23:47:54 +0000 |
| Subject: | Am I missing something? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-5480@lists.php.net to get a copy of this message | ||
Hi List-
Is there ANY reason that $strippedcode shouldn't get added to the directory
./code ??? It worked once, I haven't changed a thing, and now it doesn't
work. Here it is:
$unique = uniqid(1234567890);
$id = substr("$unique", 18);
$strippedcode = stripslashes("$code");
$sql = mysql_query ("INSERT INTO user_code (name, email, type, description,
date, id, hostname, language) VALUES ('$name', '$email', '$type',
'$description', '$date', '$id', '$host',
'$language')");
$fp = fopen("./code/$id.txt", "w+");
fputs($fp, "$strippedcode");
fclose($fp);
If you have any clues as to why this doesn't like to make the file $id.txt
in the ./code directory, please let me in on your clues. Thanks!
Regards,
Tyler Longren