You are here: Re: Editing Files: Help! « PHP Programming Language « IT news, forums, messages
Re: Editing Files: Help!

Posted by ttrium on 07/31/07 01:20

On Jul 30, 8:15 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
> On Tue, 31 Jul 2007 03:10:10 +0200, ttrium <arco...@gmail.com> wrote:
> > Ok, so this is probably the easist question ever posted, but I
> > honestly can't find the answer (if there is one).
>
> > How do I (by which function) add data to a file at the beginning of a
> > file, rather than the end of the file (as is with fopen(file, "a"))?
>
> You cannot 'prepend' data. You'll have to fetch the content, write your
> new content to the beginning of the file, and then add the old content.
> --
> Rik Wasmus

Is there a simpler way by using databases?

 

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

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