Is it in-efficient to use shuffle()? I have a simple 6 element array with 6
strings (URLs to images) and I'm using shuffle() to display all of them in
random order upon each page load. The images take a long time (of course is
relative, it's mere seconds) but when I remove the call to shuffle, they
appear much much faster...
Also, is there an efficient number or limit of queries one should call in a
singular PHP page? On average, I'll make 7-10 seperate queries to display a
page (a graphics related portal and content management system)... I have a
singular database connection (with mysql_pconnect()) and use that same
connection throughout the script. Sometimes it appears to load quickly,
than other times it doesn't, and I'm afraid that as more and more content
get put into the databases, the slower it will perform.
user authentication
navigation (link definitions)
form dropdowns (dynamic selects)
banner rotation (2 sets, big and small)
activity tracker
headline or story retrieval
comments
Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=================================
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]