[PHP-DB] Re: file_get_contents

2005-11-20 Thread David Robley
Ron Piggott wrote:

 I have given the command
 
 file_get_contents($web_page_address);
 
 (I changed this from an array last week)
 
 But after 1015 characters of typing file_get_contents is truncating the
 text. I am wondering if there is a PHP setting which is causing this to
 happen.  But I don't know which PHP setting to change when I use the
 phpinfo() command.  Any suggestions?  I am in an apache environment
 where I am able to set a local command with .htaccess file.
 
 Ron
 
Some code would be helpful to try and resolve the problem. Presumably you
are assigning the result of file_get_contents to a variable and then
displaying that variable somehow? Perhaps the string being displayed
contains a character that would foul up the display?

More information, please.

Cheers
-- 
David Robley

#define QUESTION ((bb) || !(bb)) - Shakespeare.


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



[PHP-DB] file_get_contents

2005-11-20 Thread 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/christianliving/how_do_I_respond_to_people_at_my_church_doing_their_hour_of_religion.html

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

If you visit
http://www.actsministrieschristianevangelism.org/christianliving/how_do_I_respond_to_people_at_my_church_doing_their_hour_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
-- 
[EMAIL PROTECTED]
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: [PHP-DB] file_get_contents

2005-11-20 Thread 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: [PHP-DB] file_get_contents

2005-11-20 Thread David Robley
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