hallo,
Ich sitze jetzt schon seid gestern dran ein Programm auf meinem Server zu Installieren aber es kommt immer wieder die selber Fehlermeldung . habe alles so gemacht wie es in der Readme steht aber beim ausführen der Setup auf dem Server kommt eine Fehlermeldung, ich hoffe ihr könnt mir ein wenig weiter helfen.
Fehlermeldung:
Warning: chmod() []: Operation not permitted in /www/htdocs/v099009/Signaturen/fastbanner/setup.php on line 41
Warning: chmod() []: Operation not permitted in /www/htdocs/v099009/Signaturen/fastbanner/setup.php on line 44
hier die Setup:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>FastBanner installation</title>
<style type="text/css">
/*<![CDATA[*/
<!--
body {
text-align: center;
}
.underline {
border-bottom: 1px dashed #bbbbbb;
}
legend {
color: #000099;
font-size: 15pt;
font-family: Tahoma, Helvetica, sans-serif;
}
fieldset {
border: 1px solid #000099;
padding: 3px 3px 3px 3px;
text-align: left;
}
-->
/*]]>*/
</style>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" summary="Content" width="400">
<tr>
<td>
<fieldset>
<legend align="center">Install FastBanner</legend>
<table border="0" cellspacing="2" cellpadding="3" summary="Content" width="100%">
<?php
$errors = 0;
if ($install == "yes"){
if (chmod("banners/" ,0777)){
$banner = is_writable("banners/");
}
if (chmod("banners/counter.txt" ,0777)){
$counter = is_writable("banners/counter.txt");
}
if ($banner == "1" && $counter == "1"){
$footer = "FastBanner was installed successfully!";
} else {
$footer = "There was a problem Installing FastBanner.\n<br />\nPlease refer to the <a href=\"readme.txt\" target=\"_BLANK\">instructions</a> to install manually.";
}
if ($banner == "1"){
$banner = "<span style=\"color: #009900;\">Writable</span>\n";
} else {
$banner = "<span style=\"color: #990000;\">Not writable</span>\n";
}
if ($counter == "1"){
$counter = "<span style=\"color: #009900;\">Writable</span>\n";
} else {
$counter = "<span style=\"color: #990000;\">Not writable</span>\n";
}
echo "<tr>";
echo "<td class=\"underline\">Banner file: </td><td align=\"right\" class=\"underline\">" . $banner . "</td>";
echo "</tr><tr>";
echo "<td class=\"underline\">Counter file : </td><td align=\"right\" class=\"underline\">" . $counter . "</td>";
echo "</tr>";
} else {
$banner = is_writable("banners/counter.txt");
$counter = is_writable("banners/counter.txt");
if ($banner == "1"){
$banner = "<span style=\"color: #009900;\">Writable</span>\n";
} else {
$banner = "<span style=\"color: #990000;\">Not writable</span>\n";
}
if ($counter == "1"){
$counter = "<span style=\"color: #009900;\">Writable</span>\n";
} else {
$counter = "<span style=\"color: #990000;\">Not writable</span>\n";
}
echo "<tr>";
echo "<td class=\"underline\">Banner file </td><td align=\"right\" class=\"underline\">" . $banner . "</td>";
echo "</tr><tr>";
echo "<td class=\"underline\">Counter file </td><td align=\"right\" class=\"underline\">" . $counter . "</td>";
echo "</tr>";
$footer = "This will set the permissions for FastBanner so you don't neet to do it yourself.<br /><a href=\"" . $_SERVER["PHP_SELF"] . "?install=yes\">Install</a>\n";
}
?>
</table>
</fieldset>
</td>
</tr>
</table>
<?php
echo $footer;
?>
</body>
</html>
Ich sitze jetzt schon seid gestern dran ein Programm auf meinem Server zu Installieren aber es kommt immer wieder die selber Fehlermeldung . habe alles so gemacht wie es in der Readme steht aber beim ausführen der Setup auf dem Server kommt eine Fehlermeldung, ich hoffe ihr könnt mir ein wenig weiter helfen.
Fehlermeldung:
Warning: chmod() []: Operation not permitted in /www/htdocs/v099009/Signaturen/fastbanner/setup.php on line 41
Warning: chmod() []: Operation not permitted in /www/htdocs/v099009/Signaturen/fastbanner/setup.php on line 44
hier die Setup:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>FastBanner installation</title>
<style type="text/css">
/*<![CDATA[*/
<!--
body {
text-align: center;
}
.underline {
border-bottom: 1px dashed #bbbbbb;
}
legend {
color: #000099;
font-size: 15pt;
font-family: Tahoma, Helvetica, sans-serif;
}
fieldset {
border: 1px solid #000099;
padding: 3px 3px 3px 3px;
text-align: left;
}
-->
/*]]>*/
</style>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" summary="Content" width="400">
<tr>
<td>
<fieldset>
<legend align="center">Install FastBanner</legend>
<table border="0" cellspacing="2" cellpadding="3" summary="Content" width="100%">
<?php
$errors = 0;
if ($install == "yes"){
if (chmod("banners/" ,0777)){
$banner = is_writable("banners/");
}
if (chmod("banners/counter.txt" ,0777)){
$counter = is_writable("banners/counter.txt");
}
if ($banner == "1" && $counter == "1"){
$footer = "FastBanner was installed successfully!";
} else {
$footer = "There was a problem Installing FastBanner.\n<br />\nPlease refer to the <a href=\"readme.txt\" target=\"_BLANK\">instructions</a> to install manually.";
}
if ($banner == "1"){
$banner = "<span style=\"color: #009900;\">Writable</span>\n";
} else {
$banner = "<span style=\"color: #990000;\">Not writable</span>\n";
}
if ($counter == "1"){
$counter = "<span style=\"color: #009900;\">Writable</span>\n";
} else {
$counter = "<span style=\"color: #990000;\">Not writable</span>\n";
}
echo "<tr>";
echo "<td class=\"underline\">Banner file: </td><td align=\"right\" class=\"underline\">" . $banner . "</td>";
echo "</tr><tr>";
echo "<td class=\"underline\">Counter file : </td><td align=\"right\" class=\"underline\">" . $counter . "</td>";
echo "</tr>";
} else {
$banner = is_writable("banners/counter.txt");
$counter = is_writable("banners/counter.txt");
if ($banner == "1"){
$banner = "<span style=\"color: #009900;\">Writable</span>\n";
} else {
$banner = "<span style=\"color: #990000;\">Not writable</span>\n";
}
if ($counter == "1"){
$counter = "<span style=\"color: #009900;\">Writable</span>\n";
} else {
$counter = "<span style=\"color: #990000;\">Not writable</span>\n";
}
echo "<tr>";
echo "<td class=\"underline\">Banner file </td><td align=\"right\" class=\"underline\">" . $banner . "</td>";
echo "</tr><tr>";
echo "<td class=\"underline\">Counter file </td><td align=\"right\" class=\"underline\">" . $counter . "</td>";
echo "</tr>";
$footer = "This will set the permissions for FastBanner so you don't neet to do it yourself.<br /><a href=\"" . $_SERVER["PHP_SELF"] . "?install=yes\">Install</a>\n";
}
?>
</table>
</fieldset>
</td>
</tr>
</table>
<?php
echo $footer;
?>
</body>
</html>