000
07.11.2007, 22:48 Uhr
xXx
Devil
|
index.php
PHP 4: |
setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge'); error_reporting(E_ALL); /* ... */ if (!@include('page/'.$page.'.php')) { echo ('<h1>FEHLER 404</h1><br/>Die angegebene Seite konnte nicht geladen werden!'); }
|
page\archiv.php
PHP 4: |
if (!include_once('../func/image_gallery.php')) { echo('Could not find include'); } $gallery = new image_gallery('./images/archiv/', 'FAUST', 'cover'); echo($gallery->gallery());
|
func\image_gallery.php
PHP 4: |
class image_gallery { private $image_path = './images/'; private $desc_file = 'desc.txt'; private $file_root = 'image'; private $gallery_name = 'Gallery'; public function __construct($path = './images/', $name = 'Gallery', $file_root = 'image') { $this->image_path = $path; if (!is_dir($path)) { throw new Exception('Fehler: Der angegebene Ordner "'.$path.'" konnte nicht gefunden werden'); } $this->gallery_name = $name; $this->file_root = $file_root; } public function gallery() { $result = ''; $dir = opendir ($this->image_path); while (false !== ($file = readdir($dir))) { if (!is_dir($this->image_path.$file)) { $name = $this->gallery_name; if (($num = stristr($file, $this->gallery_name) !== false) { $name .= str_replace('_', ' ', $num); } $result .= '<div class="image">'."\n\t".'<a href="'.$this->image_path.'/'.$file.'" rel="lightbox['.$this->gallery_name.']"><img src="'.$this->image_path.'/'.$file.'" alt="'.$name.'"/></a>'."\n\t".'<h2>'.$name.'</h2>'."\n\t".'<p>{ -Description- "}</p>'."\n".'</div>'."\n"; } } closedir($dir); return $result; } }
|
Doch ich bekomme keinen Error-Report, sondern die Webseite wird einfach nicht zuende geladen. Hat jemand eine Idee was da falsch ist? Ich hab einfach ein Brett vorm Kopf Dieser Post wurde am 07.11.2007 um 22:49 Uhr von xXx editiert. |