file_searchReplace php warning

From: Date: Sun, 10 Oct 2004 19:09:29 +0000
Subject: file_searchReplace php warning
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14831@lists.php.net to get a copy of this message
File_SearchReplace fires a php warning when I try to run it with a script very similar with the doc's one : Here is my code (same effect on linux and windows) : require_once("File/SearchReplace.php"); $files=array('index.php'); //$dir = 'D:\htdocs\\'; $dir= '/var/www/'; $ignoreline = array( "#", ":",'//','*') ; $snr = new File_SearchReplace( "Yes", "No",$files ,$dir,false, $ignoreline) ; $snr -> doSearch() ; The php warning : <b>Warning</b>: file(index.php): failed to open stream: No such file or directory in <b>/path/to/pear/File/SearchReplace.php</b> on line <b>261</b><br /> line 261 in SearchReplace.php is : file($filename) In other words the path ($dir param) is not prepend before the filename. If I give the entire path to file ('/var/www/index.php') as third param, the error doesn't occur, but then, the forth param ($directory) become useless. I saw no bug open on pear.php.net, so I suppose I make something wrong. Any help is welcome. Regards, Didier

« previous php.pear.general (#14831) next »