Correction in File_SearchReplace Introduction
| From: | Matt Arnilo S. Baluyos | Date: | Thu, 08 Jul 2004 06:28:25 +0000 |
| Subject: | Correction in File_SearchReplace Introduction | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-2726@lists.php.net to get a copy of this message | ||
sir,
i was trying to run the example in the introduction section of
File_SearchReplace
(http://pear.php.net/manual/en/package.filesystem.file-searchreplace.intro.php)
and it didn't run. apparently, you forgot to put the a 'new' operator in
the declaration of the class.
your code is:
$snr = File_SearchReplace( "Yes", "No", $files, "/mail/", false,
$ignoreline);
when it should be:
$snr = new File_SearchReplace( "Yes", "No", $files, "/mail/", false,
$ignoreline);
--
MATT ARNILO S. BALUYOS
Research and Software Development
System Net International, Inc. - Philippines