Menu

php error in lib.inc.php

Help 2.02
2004-02-03
2004-02-03
  • Otto Wikkelsø

    Otto Wikkelsø - 2004-02-03

    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

     
    • Andreas Kansok

      Andreas Kansok - 2004-02-03

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.