You are here: fopen problem « All PHP « IT news, forums, messages
fopen problem

Posted by Aleksandar Cikota on 06/08/06 22:11

Hello,

I have a problem with fopen().

For example, php code:
<?php
$pf = fopen("savedinfo.txt", "w");
?>
-->error message:
Warning: fopen(savedinfo.txt) [function.fopen]: failed to open stream:
Permission denied in c:\Inetpub\wwwroot\test\test1.php on line 2



and if the code looks so, I dont recieve any error message:
<?php
$pf = fopen("savedinfo.txt", "r");
?>

I can read a file, but I can't write on it. It is not writeable. Why? What
should I do?


P.S. I use Windows, this means, I don't can use chmod. If I use "wb" the
error message is the same.


Thank You!


Best regards,
Aleskandar

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация