Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

Re: [PHP3] str_replace not working From: Alan Baer (abbaer <email protected>)
Date: 01/21/99

I believe str_replace was introduced in 3.06.

Alan Baer
abbaer <email protected>

Chris Wilson wrote:
>
> Hello,
>
> I have the following code in a page:
>
> $file = fopen($f, "r");
> $contents = fread($file, filesize($f));
> fclose($file);
> chop($contents);
> $contents = str_replace("\n\n", "<p>", $contents);
>
> and when I run it I get this:
>
> Fatal error: Call to unsupported or undefined function str_replace() in
> test.php3 on line 12
>
> I'm using 3.0.5. Is this function not supported or called by a different
> name? I got it from the docs...
>
> Thanks in advance for the help!
>
> Chris Wilson
>
> {phone}
> tel + 616.471.9142
> fax + 616.471.6900
>
> {email}
> wondergeek <email protected>
>
> {web}
> http://www.wondergeek.com
>
> --
> PHP 3 Mailing List http://www.php.net/
> To unsubscribe send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest list: php3-digest-subscribe <email protected>
> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
> List administrator: zeev-list-admin <email protected>

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>