RE: [PHP] Re: MySQL or FlatFile

2002-05-13 Thread webmaster



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[EMAIL PROTECTED]www.tececo.com
 
 
-Original Message-
If the content is going to be the same each time, then loading from 
aflat-file would probably be better, because accessing a database 
wouldrequire the connection to be established, the database to parse and 
executeyour query, then send that data back. Where as reading from the file, 
it'sjust open file, read file, close file, a lot 
quicker.-Original Message-From: David Duong 
[mailto:[EMAIL PROTECTED]]Sent: Monday, May 13, 2002 10:46 AMTo: 
[EMAIL PROTECTED]Subject: 
[PHP] Re: MySQL or FlatFileI am referring to whole PHP/Perl 
files.  It is necessary to load them asmuch as 20+ times within the 
same hour what would be better MySql orFlatfile?-- 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


RE: [PHP] Re: MySQL or FlatFile

2002-05-12 Thread Martin Towell

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