Re: [PHP] Weirdest error I've ever had....
Hello Chris, br to br / this seems to me an XML-stylish tag. are you sure there is nothing else in the background? - Original Message - From: Chris Anderson [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: 2001. május 6. 18:00 Subject: [PHP] Weirdest error I've ever had Alright I have a simple file writing script. Nothing special. in one part I use this code: $data[$x] = str_replace(br,\n, $data[$x]); to replace break tags with page breaks. Problem is that for some reason it is adding wierd br / tags to the file. It only does this on that server. What is that? Chris Anderson aka Null PHP Developer / Nulltech PHP-GTK Documentation Writer / gtk.php.net STA-DoD, TO and D-Day Administrator / dod.stronger.org, to.stronger.org, dday.stronger.org Zeroping Staff Member / www.zeroping.com Volition Programmer / www.Volition-net.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Weirdest error I've ever had....
Well, br / is the XHTML-compliant version of br. In XHTML (the current W3C recommendation for web pages), you *have* to explicitly close all tags (i.e. you have to use things like /p). Single tags - br, hr, img, etc - have to be closed as well, and that's how you do it. br / hr width=80% / img src=foo.gif alt=foo / This doesn't help to explain why you're asking for one and getting the other though (sorry). Cheers Jon -Original Message- From: Gyozo Papp [mailto:[EMAIL PROTECTED]] Sent: 09 May 2001 12:20 To: Chris Anderson; PHP Subject: Re: [PHP] Weirdest error I've ever had Hello Chris, br to br / this seems to me an XML-stylish tag. are you sure there is nothing else in the background? - Original Message - From: Chris Anderson [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: 2001. május 6. 18:00 Subject: [PHP] Weirdest error I've ever had Alright I have a simple file writing script. Nothing special. in one part I use this code: $data[$x] = str_replace(br,\n, $data[$x]); to replace break tags with page breaks. Problem is that for some reason it is adding wierd br / tags to the file. It only does this on that server. What is that? Chris Anderson aka Null PHP Developer / Nulltech PHP-GTK Documentation Writer / gtk.php.net STA-DoD, TO and D-Day Administrator / dod.stronger.org, to.stronger.org, dday.stronger.org Zeroping Staff Member / www.zeroping.com Volition Programmer / www.Volition-net.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] ** 'The information included in this Email is of a confidential nature and isi ntended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Weirdest error I've ever had....
too simple :) doesnt fix it anyway, it was a xhtml compliancy problem Chris Anderson aka Null PHP Developer / Nulltech PHP-GTK Documentation Writer / gtk.php.net STA-DoD, TO and D-Day Administrator / dod.stronger.org, to.stronger.org, dday.stronger.org Zeroping Staff Member / www.zeroping.com Volition Programmer / www.Volition-net.com - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 09, 2001 2:26 AM Subject: Re: [PHP] Weirdest error I've ever had At 06.05.01 12:00, you wrote: Alright I have a simple file writing script. Nothing special. in one part I use this code: $data[$x] = str_replace(br,\n, $data[$x]); to replace break tags with page breaks. Problem is that for some reason it is adding wierd br / tags to the file. It only does this on that server. What is that? why don´t you use $data[$x]=nl2br($data[$x]); smart n easy HTH Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]