note 71799 added to function.fopen
| From: | lukas at osu1 dot php dot net | Date: | Sat, 16 Dec 2006 18:32:41 +0000 |
| Subject: | note 71799 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120654@lists.php.net to get a copy of this message | ||
why? web write me:
Warning: fopen(kniha.body) [function.fopen.php]: failed to open stream: Permission denied in
/home/free/tym.cz/e/evolutionstudio/root/www/kniha.inc on line 11
file whit code:
<?php
if ($s=="017"):
$soubor = "kniha.body";
@$ext = fopen($soubor, "r");
@$obsah = fread($ext, filesize($soubor));
@FClose($ext);
if (($vzkaz=="") or ($jmeno=="")):
echo "<h6>Nejsou vyplneny požadované údaje</h6>";
else:
$ext = fopen("kniha.body", "w");
$mail = HTMLSpecialCHars($mail);
if($mail == "")
$mail = "";
else $mail = "<a href=\"mailto:$mail\">".$mail."</a>";
$jmeno = HTMLSpecialCHars($jmeno);
$vzkaz = HTMLSpecialCHars($vzkaz);
$tab = "<tr><td width=\"300\" >".$jmeno."</td>
<td align=\"right\">".Date(" d/m/Y H:i:s")."</td>
</tr><tr><td colspan=\"2\">".$vzkaz."</td>
</tr><tr><td width=\"150\">".$mail."</td>
</tr><tr><td colspan=\"2\"><hr size=\"1\"></td>
</tr>";
fputs($ext, "$tab");
fputs ($ext, "$obsah");
FClose($ext);
@$ext = fopen("kniha.body", "r");
@fpassThru($ext);
endif;
else: @$ext = fopen("kniha.body", "r");
@fpassThru($ext); endif;
?>
----
Server IP: 147.32.160.17
Probable Submitter: 89.102.74.80
----
Manual Page -- http://www.php.net/manual/en/function.fopen.php
Edit -- https://master.php.net/note/edit/71799
Del: integrated -- https://master.php.net/note/delete/71799/integrated
Del: useless -- https://master.php.net/note/delete/71799/useless
Del: bad code -- https://master.php.net/note/delete/71799/bad+code
Del: spam -- https://master.php.net/note/delete/71799/spam
Del: non-english -- https://master.php.net/note/delete/71799/non-english
Del: in docs -- https://master.php.net/note/delete/71799/in+docs
Del: other reasons-- https://master.php.net/note/delete/71799
Reject -- https://master.php.net/note/reject/71799
Search -- https://master.php.net/manage/user-notes.php