I get the following errors in 2 different shops (... is the serverpath):
[03-Feb-2004 12:59:09] PHP Warning: fopen(./): failed to open stream: Permission denied in ...\lib.inc.php on line 30
[03-Feb-2004 12:59:10] PHP Warning: fgets(): supplied argument is not a valid stream resource in ...\lib.inc.php on line 36
[03-Feb-2004 12:59:10] PHP Warning: fclose(): supplied argument is not a valid stream resource in ...\lib.inc.php on line 38
Strange ... $row[3] should contain the name of your config file. You can replace $row[3] with name of your config file, and this error is fixed.
Perhaps you didnt enter the shop via start.php, but with login.php or similar? Normally start.php inserts this information in table online (and lib.inc.php reads from there).
Greetings,
Andreas.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get the following errors in 2 different shops (... is the serverpath):
[03-Feb-2004 12:59:09] PHP Warning: fopen(./): failed to open stream: Permission denied in ...\lib.inc.php on line 30
[03-Feb-2004 12:59:10] PHP Warning: fgets(): supplied argument is not a valid stream resource in ...\lib.inc.php on line 36
[03-Feb-2004 12:59:10] PHP Warning: fclose(): supplied argument is not a valid stream resource in ...\lib.inc.php on line 38
30 $file = fopen ("./$row[3]", "r");
31 $i=0;
32 while ($i<32) {
33 $line = fgets ($file, 200);
34 $i++;
35 }
36 $line = fgets ($file, 200);
37 $auto_convert=substr($line,17,1);
38 fclose($file);
All persmissions is set, as of my knowledge. But maybe i'm missing something..?
How/where can i Check the content of ./$row[3]?
Viking-Uffe
Strange ... $row[3] should contain the name of your config file. You can replace $row[3] with name of your config file, and this error is fixed.
Perhaps you didnt enter the shop via start.php, but with login.php or similar? Normally start.php inserts this information in table online (and lib.inc.php reads from there).
Greetings,
Andreas.