ich verwende XAMPP für Windows Version 1.5.5 und habe ein proglem mit einem php galeriescript, welches vor der neuinstallation des rechners funktionierte. das selbe problem habe ich auch zuhause. ich hatte nen linuxrechner und habe aus zeitlichen gründen auf ein plesk 8.1.1 (Windows) bei einem provider gewechselt.
das problem ist, dass zwar die thumbernails angezeigt werden, die grossen bilder jedoch nicht. ich bin ein absoluter anfänger in php und ich habe auch schon den ersteller kontaktiert (keine antwort) -> http://v17.plohni.com/?fetch=fertigescripte
ich gehe davon aus dass es an den einstellungen des webservers liegen muss, bin mir aber nicht sicher. hier nun die einzelnen seiten:
index.php
- Code: Select all
<?
/*############### INSTALLATION ###############*/
// 1. Variablen in config.php anpassen
// 2. Dateien im ASCII Modus auf den Server kopieren
// 3. Datei aufrufen mit index.php?g=[Ordner]&t=[Titel], zB index.php?g=example&t=ExampleGallery
// Mit Javascript: <a href="index.php?g=example&t=ExampleGallery" target="imagegallery" OnClick="window.open('','imagegallery','scrollbars=no,width=776,height=650')">ExampleGallery</a>
/*############### SCRIPT ###############*/
//Konfiguration laden
include("config.php");
//Content ausgeben
echo "
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//CH-DE'>
<html>
<head>
<title>" . $title . " (" . $t . ")</title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
<frameset rows='*,120' border='0' frameborder='0' framespacing='0'>
<frame src='main.php?g=" . $g . "&t=" . $t . "' name='main' noresize marginwidth='0' marginheight='0' scrolling='no'>
<frame src='nav.php?g=" . $g . "&t=" . $t . "' name='nav' noresize marginwidth='0' marginheight='0' scrolling='auto'>
</frameset>
<noframes>
<body>
Diese Seite benötigt einen Browser mit Frameunterstützung.
</body>
</noframes>
</head>
</html>
";
?>
nav.php
- Code: Select all
<?
//Konfiguration laden
include("config.php");
//Content ausgeben
echo "
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//CH-DE'>
<html>
<head>
<title>" . $title . " (" . $t . ")</title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
</head>
<body onLoad=\"OnLoad()\" onMousemove=\"move()\" \"init();\">
<center>
<br>" . $t . "
";
$path = opendir($img_folder . $g);
while($file = readdir($path))
if($file != "." && $file != ".." && $file != "thumbs")
$files[] = $file;
sort($files);
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"400px\" height=\"17px\">";
foreach($files as $f)
echo "
<td>
<a href=\"main.php?g=" . $g . "&f=" . $f . "&t=" . $t . "\" target=\"main\"><img src=\"" . $img_folder . $g . "/thumbs/" . $f . "\" alt=\"" . $f . "\" class=\"thumb\"></a> </td>";
echo "
</tr></table>
</body>
</html>
";
?>
main.php
- Code: Select all
<?
//Konfiguration laden
include("config.php");
//Content ausgeben
echo "
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//CH-DE'>
<html>
<head>
<title>" . $title . " (" . $t . ")</title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
</head>
<body>";
if($f)
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">
<tr>
<td width=\"100%\" height=\"100%\" align=\"center\"><img src=\"" . $img_folder . $g . "/" . $f . "\" border=\"1\" alt=\"" . $f ."<br>". $text. "\"></td>
</tr>
</table>";
else
echo " ";
echo "
</body>
</html>
";
?>
config.php
- Code: Select all
<?
//Variablen
$title = "titel"; //Titel
$img_folder = "example/"; //Ordner, der die Bilderordner enthält (mit abschließendem "/")
$text = "text.csv"; //Beschreibung zum Foto
?>
ich habe auch schon nach andern scripten geschaut, fand aber nichts was - wenns funktionieren würde - so einfach ist wie dieses und genau dem entspricht, was ich gerne möchte.
ich danke schon zum voraus für eure hilfe
liebe grüsse
michael