RE: [PHP] Re: MySQL or FlatFile
| From: | webmaster at tececo dot com | Date: | Mon, 13 May 2002 12:13:25 +0000 |
| Subject: | RE: [PHP] Re: MySQL or FlatFile | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97339@lists.php.net to get a copy of this message | ||
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.
JJ Harrison
webmaster@tececo.com
www.tececo.com
-----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:davidduong1@hotmail.com]
Sent: Monday, May 13, 2002 10:46 AM
To: php-general@lists.php.net
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