.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Programming (http://forums.bots-united.com/forumdisplay.php?f=25)
-   -   PHP pages with f*() file access (http://forums.bots-united.com/showthread.php?t=6427)

Brainz 26-07-2007 17:21

PHP pages with f*() file access
 
I've got a php page which essentially parses a plain-text todo and appointment list. However, you can specify the order that the appointments are shown in, or that some appointments don't display on the main page, only in a popup window, independantly of the order in the text.
What I'm wondering is whether it would be more efficient to load the entire list into an array before sorting it, and then pass the array to the popup, or to read (and parse) the file twice: once in the main page, ignoring the "do not display" items, and then again in the popup?


All times are GMT +2. The time now is 17:09.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.