RE: [PHP] help with script please

From: Date: Sun, 07 Jan 2001 02:31:11 +0000
Subject: RE: [PHP] help with script please
Groups: php.general 
Request: Send a blank email to php-general+get-33073@lists.php.net to get a copy of this message
Sorry everyone.. I forgot to type in my question... Could you please tell me how to make the script use either the array or the $memberpath? I am very new to this and have absolutely no clue.. I just need to get these users moved over to the new forum. Thanks, Rich Foreman > I have a folder on my server: /usr/local/etc/httpd/cgi-bin/Members/ > that contains several files, called: 00000002.cgi all the way through > 00000198.cgi > The error it gives is: > > Warning: file("00000198.cgi") - No such file or directory in > /usr/local/etc/httpd/htdocs/board/ubb.php on line 38 > // export ubb members to phpBB > $memberpath = "/usr/local/etc/httpd/cgi-bin/Members"; > // for each member, gather data for import > echo "<br>Processing $i members ."; > while ( $i >= 0 ) { > $member = file($members[$i]); If you look at your script and the error it seems that $memberpath which would correctly set the path is not used on line 38. Or at least that is what php seems to think. If the file is already loaded into an array why use file? Why not just procees the array? I don't know, maybe I missed something.

« previous php.general (#33073) next »