Reply to Re: Cannot open file

Your name:

Reply:


Posted by naixn on 12/02/06 15:05

rahulthathoo wrote :
> Also I wanted to add that if i write a perl script to write to a file,
> it does it for me. But some how that is not possible in php. I gave
> write permissions to all the php files and all the text files.
>
> Rahul
>
>
> rahulthathoo wrote:
>> Hi
>> I have my home directory on my departments server. Somehow I am not
>> able to write to a file using a php code,
>> $myFile = "trial3.txt";
>> $fh = fopen($myFile, "a+") or die("can't open file");
>>
>> Instead of a+ if i use r or w or anything, it does not work. Could this
>> be a permission thing? The entire directory had a 777 permission and
>> even i after i created a file and chmod'ed 777 to it, the code couldnt
>> open it. What could be the matter? It doesnt go away if i change it to
>> 'w' or 'w+' or 'r' or 'r+'.
>>
>> Rahul
>

Did you try running your PHP script in a shell, instead of in a browser?

--
Naixn
http://fma-fr.net

[Back to original 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

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