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 Efi Merdler on 03/08/07 15:12

Mike Russell wrote:
> "Efi Merdler" <fooshm@gmail.com> wrote in message
> news:1173362204.361116.68540@c51g2000cwc.googlegroups.com...
> >
> > Mike Russell wrote:
> >> It seems to me that you should consider whether a database may be a
> >> cleaner
> >> solution than a file. In addition to the permissions issue you've
> >> already
> >> discovered, there is locking. Have you considered what happens when two
> >> sessions need to access the file at the same time? These sorts of issues
> >> are already dealt with if you use a database.
> >
> >> --
> >> Mike Russell
> >> www.curvemeister.com/forum/
> >
> > Thanks, I considered it, I'm using flock, the reason I'm not using a
> > db because all I needed was a really simple access procedure, however
> > I do agree that next time I'll use a db, now I just do not have the
> > time to change my script.
>
> Write a php script that creates the file, and primes it with whatever data
> is needed.
>
> Or install PHP Shell Terminal - in an access protected folder! - and create
> the file from there:
> http://sourceforge.net/projects/phpterm/
> --
> Mike Russell
> www.curvemeister.com/forum/

Thanks, unfortunately php is running in safe mode.
I guess I'll use a script to create this file.

Efi

 

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

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