[PHP-DB] Strain testing

2001-09-07 Thread Seb Frost
My website frequently seems to be hugely slow or chuck out loads of php/mysql errors. Initially i thought this the fault of my web hoster, but they're so big and popular I can't believe this is caused by them. Which leads me to think maybe the problems are caused when a certain number of people

RE: [PHP-DB] How can you hide database login passwd in your script?

2001-09-04 Thread Seb Frost
I'm confused. You password protect a directory so that no one can get to it. And then you can just link into a folder in that directory? Why doesn't a password dialog box come up? Surely someone could write a malicious script and have it link into the same file to get passwords and stuff neede

RE: [PHP-DB] Searching database tables

2001-09-03 Thread Seb Frost
$searchCategory="Company";[insert html code for drop down box instead of this line] $searchKey="IBM"; $result = mysql_query("SELECT * from $table WHERE ($searchCategory='$searchKey')"); or something like that anyway - seb -Original Message- From: Devon [mailto:[EMAIL PROTECTE

RE: [PHP-DB] resizing image with php - what is the quality?

2001-08-31 Thread Seb Frost
imagecopyresized: crap imagecopyresampled: good but requires gd > 2.0 - seb -Original Message- From: Andrius Jakutis [mailto:[EMAIL PROTECTED]] Sent: 01 September 2001 09:07 To: [EMAIL PROTECTED] Subject: [PHP-DB] resizing image with php - what is the quality? Hello, Again question a

RE: [PHP-DB] Random

2001-08-31 Thread Seb Frost
I know it's documented as rand() but you might want to try random() just in case... I'm sure I read that somewhere - seb -Original Message- From: John Hurleston [mailto:[EMAIL PROTECTED]] Sent: 31 August 2001 19:18 To: [EMAIL PROTECTED] Subject: [PHP-DB] Random I would like to get

RE: [PHP-DB] Include

2001-08-18 Thread Seb Frost
chuck all the common variables in var.php then just put - seb -Original Message- From: CrossWalkCentral [mailto:[EMAIL PROTECTED]] Sent: 19 August 2001 03:18 To: [EMAIL PROTECTED] Subject: [PHP-DB] Include OK here is one for you folks that know what you are doing. I am making a sc

RE: [PHP-DB] Re: Making a new row in HTML tables

2001-07-25 Thread Seb Frost
Well it seems what you're trying to do is to set as square a table as you can. So, take your number of entries and square root it. Now round it up. Now divide the number of entries by that number and again round up. Now use these two numbers to make the table. Should be pretty straighforward..

RE: [PHP-DB] search database

2001-07-25 Thread Seb Frost
Could you be more specific? You can do ANYTHING using the select command. - seb -Original Message- From: J- E- N [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 12:02 To: [EMAIL PROTECTED] Subject: [PHP-DB] search database can you suggest how to do a database search aside from using "