Thread: Organize Fopen
View Single Post
Re: Organize Fopen
Old
  (#6)
Ancient
PodBot MM's Laziest Waypointer
 
Ancient's Avatar
 
Status: Offline
Posts: 1,010
Join Date: Jan 2005
Location: Nebraska, United States of America
Default Re: Organize Fopen - 23-08-2008

I could do that. That's actually a nice idea. Thank you.

I was reading in the PHP.net pages that the for function is quite slow compared to while and others.

Right now, I'm just worried about being able to edit the news posts. The way I'm thinking of doing it is read and save the data in the php memory. delete the file create and then write everything in order from 0 to the latest and of course have the edited posts in there somewhere.

Right now the news file is 23k, I don't think it will cause any problems, but I know there are some people who do not have cable and can run things very fast. I know it isn't the user who has to create the files since PHP is server-side. I just don't want to use to much memory and stuff on a single page. Espeically here at BU since VBulletin seems to be pretty slow to load as it is.

Everything is sorting fine for the moment. I even got some BBCodes up for the admins to make things easier.
Podbot MM News

It's been forever since I used a file-based DB. MySQL is my thing now days.


[Web Designer][Waypointer][Gamer]
CFE Games Administrator
[CFE]Games.com
[Never Trust the Untrusted]

Last edited by Ancient; 23-08-2008 at 21:26..
  
Reply With Quote