RE: [PHP] magical file writing truncation
| From: | Jay Blanchard | Date: | Fri, 08 Aug 2003 11:31:23 +0000 |
| Subject: | RE: [PHP] magical file writing truncation | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-158803@lists.php.net to get a copy of this message | ||
[snip]
$newFile = "xml/".$type."/".$now.".xml";
while(file_exists($newFile))
$newFile = "xml/".$type."/".$now++.".xml";
$text = $_POST['text'];
$text = urlencode(stripslashes(nl2br($text)));
[/snip]
At this point (for testing putposes) I would echo "$text"; and start
looking for clues. If I were a betting man I would have to say that
there is some problem with quotes within the text. I hope that this
points you in the right direction.
Have a pleasant and fruitful day!