> > [snip]
> > $newFile = "xml/".$type."/".$now.".xml";
> > while(file_exists($newFile))
> >$newFile = "xml/".$type."/".$now++.".xml";
> > $text = $_POST['text'];
> > $text = urlencode(stripslashes(nl2br($text)));
> > [/snip]
> >
ack, sorry to double post...
it appears that it actua
Let's work backwards then. Instead of
$text = urlencode(stripslashes(nl2br($text)));
try
$text = urlencode(nl2br($text));
echo "$text";
Can you post the first couple of raw lines of text and then the echo'd
output?
--
okay, the first few lines of raw text are as follows... it's a c
[snip]
> > [snip]
> > $newFile = "xml/".$type."/".$now.".xml";
> > while(file_exists($newFile))
> >$newFile = "xml/".$type."/".$now++.".xml";
> > $text = $_POST['text'];
> > $text = urlencode(stripslashes(nl2br($text)));
> > [/snip]
> >
ack, sorry to double post...
it appears that it
[snip]
i really can't get my head around this one at all. could it possibly be
a
windows issue??? i know windows can be an arse in dealing with files,
but i
can't see how it could pick up on a variable inside PHP and truncate it?
[/snip]
I just have one more thought because you brought up Window
[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.
I didn't see anything right off of the bat. You may want to output the
text both ways and then compare them using
http://us3.php.net/manual/en/function.strcmp.php
apart from the fact that the slashes are there in one, and not in the other,
there is no difference...
$fp = fopen($n
[snip]
OK, put stripslashes back in and show the echo'd out put again.
-
$text = urlencode(stripslashes(nl2br($text)));
print $text;
[/snip]
I didn't see anything right off of the bat. You may want to output the
text both ways and then compare them using
http://us3.php.net/manua
[snip]
Session+Start+%28Yahoo%21+-+fatcubanskate%3Athe_lady_in_waiting1982%29%3
A+Th
u+Jul+10+21%3A23%3A42+2003+%3Cbr+%2F%3E%0D%0A%5B21%3A23%5D+the_lady_in_w
aiti
ng1982%3A+hey+sexy%21%21%21+%3Cbr+%2F%3E%0D%0A%5B21%3A24%5D+fatcubanskat
e%3A
+hey+sugar+%3Cbr+%2F%3E%0D%0A%5B21%3A24%5D+fatcubanskate%3
[snip]
okay, the first few lines of raw text are as follows... it's a chat log
btw...
Session Start (Yahoo! - fatcubanskate:the_lady_in_waiting1982): Thu Jul
10
21:23:42 2003 [21:23] the_lady_in_waiting1982: hey sexy!!! [21:24]
fatcubanskate: hey sugar [21:24] fatcubanskate: how\'s thing? [21:25]
[snip]
i really can't get my head around this one at all. could it possibly be
a
windows issue??? i know windows can be an arse in dealing with files,
but i
can't see how it could pick up on a variable inside PHP and truncate it?
[/snip]
I just have one more thought because you brought up Windows.
>
> obviously there's no simple solution here... can anyone point me in the
way
> of an alternative way of doing this? i could try the file write in 3
stages,
> first part of content, text, end of content, as they seem to write fine
> seperatly.
>
this is magical, evening seperating the file open
> [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
>
12 matches
Mail list logo