php3-list | 199901
Date: 01/21/99
- Next message: Brian Schaffner: "RE: [PHP3] functions taking a hash"
- Previous message: Sascha Schumann: "Re: [PHP3] functions taking a hash"
- In reply to: Chris Wilson: "[PHP3] str_replace not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Brian Schaffner: "RE: [PHP3] functions taking a hash"
- Previous message: Sascha Schumann: "Re: [PHP3] functions taking a hash"
- In reply to: Chris Wilson: "[PHP3] str_replace not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

