Hilfe bei Gallerie-Script

Dieses Thema im Forum "Webentwicklung" wurde erstellt von huempfers, 4. Oktober 2005 .

Schlagworte:
Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 4. Oktober 2005
    Hey Leute hab nen Problem.
    Hab ne Bildergallerie in PHP und wollte da noch zusätzlich ne Comment-Anzeige einbauen.
    Jetzt kommt aber immer folgender Fehler:

    ]: open_basedir restriction in effect. File(/usr/share/php/commentcount.php) is not within the allowed path(s): (/srv/www/httpd/pytalhost/2443/) in /srv/www/httpd/pytalhost/2443/html/Bilder/skins/pbstyle/templates/thumb.php on line 10

    Warning: main(commentcount.php) [

    Hab zwei Dateien in nem Ordner liegen, die damit zu tun haben.
    Einmal die thumb.php

    Code:
    <td> 
     <table cellpadding="0" cellspacing="0" class="thumb <?php if ($mg2->new) echo " marknew" ?>" align="center"> 
     <tr> 
     <td> 
     <a href="<?php $mg2->output(link) ?>" target="_self"> 
     <img src="<?php $mg2->output(thumbfile) ?>" border="0" width="<?php $mg2->output(thumb_width) ?>" height="<?php $mg2->output(thumb_height) ?>" alt="" title="" class="thumb"/> 
     <br /><img src="skins/admin/images/1x1.gif" width="0" height="<?php echo 158 - $mg2->thumb_height ?>" alt="" title="" /><br /> 
     <?php $mg2->output(title) ?> 
     <?php echo $data[$result[$i][0]][1]; ?> 
     <?php include("commentcount.php"); ?> 
     </a> 
     </td> 
     </tr> 
     </table>
    
    und noch die commentcount.php

    Code:
    <?php 
    $filename = "pictures/" . $result[$i][1] . ".comment"; 
     $count = 0; 
    if (is_file($filename)){ 
     $fd = fopen($filename,"r"); 
     $file = file($filename); 
     fclose($fd); 
     
     $count = count($file); 
     } 
    if($count > 0) echo "Comments (".$count.")"; 
    ?> 
    </td>
    
    Kann es sein, das der Fehler kommt, weil die Dateien vielleicht nen anderen Pfad wollen (commentcount.php woanders hin) oder so?

    Bitte helft mir mal weiter. THX

    Greetz
     
  2. 13. Oktober 2005
    aehm die thumbs.php is nich zufällig auf nem ganz anderem server???
     
  3. 13. Oktober 2005
    Problem hat sich schon gelöst.
     
  4. 13. Oktober 2005
    erledigt

    ~ closed ~
     
  5. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.