I am very new to PHP(Still awaiting a book, Only done a few tutorials and read bits of the PHP manual).
 
But if you used:
mysql_pconnect($host, $user, $password)
It would keep a consistant connection to the database so it may speed things up a bit.
 
 
 
-----Original Message-----
If the content is going to be the same each time, then loading from a
flat-file would probably be better, because accessing a database would
require the connection to be established, the database to parse and execute
your query, then send that data back. Where as reading from the file, it's
just open file, read file, close file, a lot quicker.

-----Original Message-----
From: David Duong [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 10:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: MySQL or FlatFile


I am referring to whole PHP/Perl files.  It is necessary to load them as
much as 20+ times within the same hour what would be better MySql or
Flatfile?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Reply via email to