[PHP] Embedding HTML in PHP

2006-01-30 Thread Jedidiah








I apologize for the
multi-post if this has reached the group already, but I have never heard any
reply back on it, which seems unusual for this group.

If I am asking in the
incorrect place, could someone please direct me to the correct forum?



I send out a daily devotion
via a CRON job. This devotion is a PHP file with embedded html. The problem I
am having is that when this job runs, an exclamation point or two are added
randomly in the document and I cannot figure out why. I am not sure if I can
attach files to this group, but I will try to attach the file I am referring
to. I have 31 of these, and each of them generates the exclamation points in a
different place. I would appreciate any feedback on this at all. 



I have been told that it had
something to do with the quotation marks. As you can see in this file, I
inserted a backslash before each quotation mark as I was advised to do. This
has not helped.



Thanks.



Jedidiah 












t31.php
Description: application/php
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Embedding HTML in PHP

2006-01-30 Thread Miles Thompson


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.23/243 - Release Date: 1/27/2006

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

Re: [PHP] Embedding HTML in PHP

2006-01-30 Thread Richard Correia
Try to pass your content through htmlentities function.

You can see the use of this function at
http://www.weberdev.com/get_example-4208.html

Thanks
Rich


On 1/31/06, Jedidiah [EMAIL PROTECTED] wrote:

  I apologize for the multi-post if this has reached the group already, but
 I have never heard any reply back on it, which seems unusual for this group.

 If I am asking in the incorrect place, could someone please direct me to
 the correct forum?



 I send out a daily devotion via a CRON job.  This devotion is a PHP file
 with embedded html.  The problem I am having is that when this job runs, an
 exclamation point or two are added randomly in the document and I cannot
 figure out why.  I am not sure if I can attach fi



Re: [PHP] Embedding HTML in PHP

2006-01-30 Thread Chris

Hi,

If you're mailing it somewhere you'll need to wrap it (see wordwrap).

The random points are the mail server starting a new line (approx every 
1024 characters).



Jedidiah wrote:
I apologize for the multi-post if this has reached the group already, 
but I have never heard any reply back on it, which seems unusual for 
this group.


If I am asking in the incorrect place, could someone please direct me to 
the correct forum?


 

I send out a daily devotion via a CRON job.  This devotion is a PHP file 
with embedded html.  The problem I am having is that when this job runs, 
an exclamation point or two are added randomly in the document and I 
cannot figure out why.  I am not sure if I can attach files to this 
group, but I will try to attach the file I am referring to.  I have 31 
of these, and each of them generates the exclamation points in a 
different place.  I would appreciate any feedback on this at all. 

 

I have been told that it had something to do with the quotation marks.  
As you can see in this file, I inserted a backslash before each 
quotation mark as I was advised to do.  This has not helped.


 


Thanks.

 


Jedidiah

 

 



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