RE: [PHP] help with script please
| From: | Richard A. Foreman II | Date: | Sun, 07 Jan 2001 02:28:36 +0000 |
| Subject: | RE: [PHP] help with script please | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-33072@lists.php.net to get a copy of this message | ||
-----Original Message-----
From: Lewis Bergman [mailto:lbergman@abi.tconline.net]
Sent: Saturday, January 06, 2001 7:15 PM
To: Richard A. Foreman II
Subject: Re: [PHP] help with script please
> 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.