Reply to Re: fopen() in reverse

Your name:

Reply:


Posted by Andy Jeffries on 05/10/06 13:10

On Wed, 10 May 2006 11:51:54 +0200, Henrik Hansen wrote:
>> I'm remaking my old FFA (Free For All) script and I've got just about
>> everything done except for the reverse entries for the textfile.
>>
>> I need to have all the entried ordered from newest to oldest.
>
> use file() and array_reverse() ?

Or if your file is large (because file will obviously load the whole file
in to an array), use exec or something similar to use the
Linux command line utility "rev".

Cheers,


Andy

--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

[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

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