Hallo Silvia.
gerade hab ich mir pb3 picture browser runtergeladen, ein php-Galerie-Skript.
Von wo?
Der Anfang des Skripts sieht so aus:
[…]
Hier sind sämtliche Zeilenumbrüche defekt.
Kann mir jemand sagen, was ich tun muss, damit das läuft ??
Du müsstest sämtliche Zeilenumbrüche manuell korrigieren, da momentan die Kommentarzeichen das Script unbrauchbar machen.
Es gilt nun herauszufinden, ob der Fehler bei dir (respektive deinen Programmen) oder beim Autor (respektive seinen Programmen) liegt.
Korrekt formatiert sähe dein Codeschnipsel so aus:
<?php
/*--------------------------------------------------------------------*/
/* Project Retorte PictureBrowser */
/* Script for displaying images on the web */
/*--------------------------------------------------------------------*/
/* */
/* Read README for further information */
/* */
/* Author Nico Waldispuehl nw */
/* Contact nw at retorte dot ch */
/* Datum of creat. 27. July 2003 */
/* Version 3.2.0, 17.01.2006 */
/* Copyright (c) nw 2003 - 2006 */
/* License GNU Public License (check out LICENSE) */
/* */
/*--------------------------------------------------------------------*/
/*--------------------------------------------------------------------*/
/* Classdefinition and such */
/*--------------------------------------------------------------------*/
class PICTURE_BROWSER{
// Declaring class variables
var $version;
var $aktId;
var $navArray;
var $pictures;
var $user_comments_data;
var $title;
var $cols;
var $thumb_width;
var
Und hier sieht man auch, dass der Code recht alt ist, da heutzutage das Schlüsselwort „var“ nicht mehr gebraucht wird.
Einen schönen Sonntag noch.
Gruß, Ashura
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
mathbr:del.icio.us/ mathbr:w00t/
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
mathbr:del.icio.us/ mathbr:w00t/