You are here: Re: Writing to files that are not public « PHP Programming Language « IT news, forums, messages
Re: Writing to files that are not public

Posted by Mike Russell on 03/10/07 08:49

"Efi Merdler" <fooshm@gmail.com> wrote in message
news:1173480090.029269.53080@8g2000cwh.googlegroups.com...
Mike Russell ???:
>
> Write a php script that creates the file, and primes it with whatever data
> is needed.
> --
> Mike Russell
> www.curvemeister.com/forum/

> Hi
> Unfortunately when trying to change mode I receive the following
> error :
> Warning: chmod() has been disabled for security reasons

Your php is in safe mode. You apparently cannot change the mode of a file
created by another account, in this case your FTP account.

> The security is just too tight I can't do anything :-)
> What do you think ?

It is very likely still possible to create files in a particular folder and
read and write to them, however

> I want my file to be accessible for read and write from php and not to
> the outside world.

Delete the file you created using ftp, then create the file in php and then
see if you have permission to read and write it. No chmod should be needed,
since the file will already belong to the host's php account.

If that doesn't work. it's time to use a database. If there's no database,
IMHO you are out of luck, and will have to ask the administrators of your
php host for suggestions, and change your hosting arrangement if they cannot
give you a good answer. Perhaps someone else will chime in with some ideas.
--
Mike Russell
www.curvemeister.com/forum/

 

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

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