Re: file_get_contents

From: Date: Sun, 20 Nov 2005 18:50:06 +0000
Subject: Re: file_get_contents
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-40708@lists.php.net to get a copy of this message
This just got interesting. It does this error just through e-mail. If I run an 'echo $message;' the entire file which has been loaded displays correctly. My mail syntax is mail($to,$subject,$message,$headers) where $message is the HTML file text I am attempting to e-mail. file_get_contents is working correctly. This changes the entire problem now. Is there a limit to how many characters mail() will accept? Ron On Sun, 2005-20-11 at 10:25 -0800, Micah Stevens wrote: > Sorry, the maxlen is only in 5.1.0.. I wasn't reading far enough. > > You can't control how much variables can hold except for the maximum php > memory allowance in php.ini. This is by default 8 megs, which could I suppose > be set much smaller by the admin. This is in phpinfo() if you take a look. > > If it's indeed 8 megs, that's quite a bit, and you shouldn't have this problem > based on that. > > A couple of questions: > > 1) If you just echo $message to the browser, does the same thing happen, or > only through email?

« previous php.db (#40708) next »