Re: variable size limit?
| From: | Andrew Threlfall | Date: | Mon, 15 Jan 2001 09:45:45 +0000 |
| Subject: | Re: variable size limit? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34601@lists.php.net to get a copy of this message | ||
> I'm generating a page of HTML by reading an entire page of HTML source
into
> a variable, and then doing various functions and str_replace on the
> variable.
>
> However when I finialy write this out to a file the variable containing
the
> HTML source is truncated, at about 5800-ish bytes.
>
> Is there a limit of the amount of data a variable can store? Or is there a
> better way to manipulate the text in file?
>
It seems that when I did my fread, I was using the wrong filename in the
filesize function. Therefore The file was being read into the variable and
getting truncated at the incorrect limit.
--
Andrew