Re: A simple question, however it's urgent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 5/17/2010 8:53 AM, Andre Polykanine wrote:
Ash,

Magic quotes are disabled:
http://gviragon.org/study/php.php
Any ideas?
Thanks a lot!



Your code should work for something as simple as this, almost regardless of the php setup.

Change your
$what=array("\r\n", "\n", "\r");
$with=array("<br>");

To this, so you can see exactly what's happening.

$what=array("\r\n", "\n", "\r");
$with=array("[*rn*]", [*n*], [*r*]);

Echo the string.

There is an error in your $what. You have not included \n\r which is the most likely case.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux