file_get_contents

file_get_contents

am 20.11.2005 14:48:42 von Ron Piggott

Ok. Here is some code:

$message = file_get_contents($web_page_address);
#in this situation $web_page_address is equal to
http://www.actsministrieschristianevangelism.org/christianli ving/how_do_I_respond_to_people_at_my_church_doing_their_hou r_of_religion.html

mail($to,$subject,$message,$headers)

If you visit
http://www.actsministrieschristianevangelism.org/christianli ving/how_do_I_respond_to_people_at_my_church_doing_their_hou r_of_religion.html you will see the source code of the page giving the error. The last paragraph of teaching before the footer is what is truncated. Below my signature in this e-mail is where the text gets cut off. There is no ASCII characters that are weird to display.

After this paragraph footer goes through the web to e-mail gateway
correctly.

I wonder if I have come up against filling a memory variable in a PHP
setting and could change my local setting.

Ron
--
ron.piggott@actsministries.org
www.actsministrieschristianevangelism.org

Acts Ministries Christian Evangelism
"Where People Matter"
12 Burton Street
Belleville, Ontario, Canada K8P 1E6

(613) 967-0032
(866) ACTS-MIN

There are people who come to church who appear to be doing their hour or
hour and a half of religion for the week. When you observe someone such
as this God's Spirit is asking that you will pray for a spiritual
awakening in this individuals life. You have been drawn attention to
this fact, not to judge, or necessarily confront, but to pray for the
individual. It is through prayer God responds to individual's needs. We
do not need to know the life story of an individual in order to pray for
them. We are able to pray with great boldness that the individuals
family matters, employment and personal concerns come into subjection to
Jesus Christ. It isn't the length of a prayer which God is concerned
about, but the sincerity of the person making intercession. If God so
desires the Holy Spirit will empower you with knowledge to pray into
specific areas of this individuals life. Otherwise God is seeking that
your heart be pure as you pray that He would change the individual to be
more like His Son. While pr

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: file_get_contents

am 20.11.2005 19:50:06 von Ron Piggott

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?

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: file_get_contents

am 21.11.2005 00:49:51 von robleyd

Ron Piggott wrote:

> 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?
>

No, but there may be limits on line length. The point where your message is
breaking is on the longest line of text in that page; perhaps if you were
to try wrapping the lines to around 80 characters you might get over the
problem.

If not, amybe it is the World Wide Web getting its own back for you using
such a lengthy URL :-)

BTW, your HTML syntax on that page is not correct.



Cheers
--
David Robley

"It's two, two, two mints in one," Tom said certainly.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php