ssiersdorfer
Grünschnabel
hi,
hab ein kleines problem. hab das layout meiner page per includen von dateien gemacht.
index.php
wenn ich jetzt die datei für die bildergallerie im div container "inhalt" öffne erhalte ich folgende fehlermeldung:
Warning: chdir(): Not a directory (errno 20) in /raid/domains/de/z/zenmusic/htdocs/www/test/pics/index.php on line 22
Warning: filemtime(): Stat failed for layout (errno=2 - No such file or directory) in /raid/domains/de/z/zenmusic/htdocs/www/test/pics/index.php on line 20
Warning: chdir(): SAFE MODE Restriction in effect. The script whose uid is 1159742 is not allowed to access /raid/domains/de/z/zenmusic/htdocs/www owned by uid 0 in /raid/domains/de/z/zenmusic/htdocs/www/test/pics/index.php on line 22
Warning: chdir(): SAFE MODE Restriction in effect. The script whose uid is 1159742 is not allowed to access .. owned by uid 16 in /raid/domains/de/z/zenmusic/htdocs/www/test/pics/index.php on line 35
und noch viele weitere.
der code der index.php der bildergallerie:
hoffe ihr könnt mir da weiterhelfen
rock on
sven
hab ein kleines problem. hab das layout meiner page per includen von dateien gemacht.
index.php
PHP:
<?php
error_reporting(E_ALL);
include "layout/config.php";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n";
echo " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
echo "<html>\n";
echo " <head>\n";
echo " <title>ZEN //...Alternative Rock...\\</title>\n";
echo " <meta http-equiv=\"Content-Type\"
content=\"text/html; charset=ISO-8859-1\" />\n";
echo " </head>\n";
echo " <body>\n";
echo " <table width=\"100%\" height=\"90%\" border=\"0\">";
echo " <tr>";
echo " <td height=\"70px\">";
echo " </td></tr>";
echo " <tr>
<td height=\"40px\">";
echo " <div id=\"menue\">\n";
include "layout/menue.php";
echo " </div>\n";
echo " </td></tr>";
echo " <tr>
<td><table width=\"100%\" height=\"100%\" border=\"0\">
<tr>
<td width=\"270px\">";
include "newsletter/index.php";
echo "</td>
<td width=\"530px\">";
echo " <div id=\"inhalt\" style=\"height:360px;overflow:auto;\">\n";
include "layout/inhalt.php";
echo " </div>\n";
echo " </tr>
</table></td>
</tr>
</table>";
echo " <br style=\"clear:both;\" />\n";
echo " </div>\n";
echo " </body>\n";
echo "</html>\n";
?>
wenn ich jetzt die datei für die bildergallerie im div container "inhalt" öffne erhalte ich folgende fehlermeldung:
Warning: chdir(): Not a directory (errno 20) in /raid/domains/de/z/zenmusic/htdocs/www/test/pics/index.php on line 22
Warning: filemtime(): Stat failed for layout (errno=2 - No such file or directory) in /raid/domains/de/z/zenmusic/htdocs/www/test/pics/index.php on line 20
Warning: chdir(): SAFE MODE Restriction in effect. The script whose uid is 1159742 is not allowed to access /raid/domains/de/z/zenmusic/htdocs/www owned by uid 0 in /raid/domains/de/z/zenmusic/htdocs/www/test/pics/index.php on line 22
Warning: chdir(): SAFE MODE Restriction in effect. The script whose uid is 1159742 is not allowed to access .. owned by uid 16 in /raid/domains/de/z/zenmusic/htdocs/www/test/pics/index.php on line 35
und noch viele weitere.
der code der index.php der bildergallerie:
PHP:
<?php
$handle=opendir('.');
$j = 0;
while ($file[$j] = readdir ($handle)) {
if($file[$j] != "." && $file[$j] != ".." && $file[$j] != "index.php")
{
$j++;
}
}
closedir($handle);
$z = 0;
while($z < $j)
{
$up_time[$z] = filemtime("$file[$z]");
$up_time[$z] = date("M Y", $up_time[$z]);
chdir("$file[$z]");
$handle_check=opendir('.');
$dateien = 0;
$bilder_vorhanden = 0;
while ($file_check = readdir ($handle_check))
{
$dateien++;
}
if($dateien > 4)
{
$links[$z] = $file[$z];
}
chdir("..");
$z++;
}
closedir($handle_check);
echo"<table width='75%' border='0' align='center'><tr>";
$p = 0;
while($p < $z)
{
echo"<td width='49%'><strong><font size='2' face='Tahoma'><a href='$links[$p]'>$links[$p]<br><br></a></font></strong></td></tr><tr>";
$p++;
}
echo"</tr></table></td></tr></table>";
?>
hoffe ihr könnt mir da weiterhelfen
rock on
sven