RE: [PHP] sending e-mail with variables

2001-06-26 Thread Kristian Duske
$subject =$row[msub]; //Your webhosting account at $hostname.$domain$tld; $message .= $row[mline1]; //Dear $fullname,\n; $message .= $row[mline2];//Your webhosting account has been created. Please use the\n; $message .= $row[mline3];//following data to log in:\n; Now my problem is it does

RE: [PHP] Remove value from array

2001-06-25 Thread Kristian Duske
Hello, how can I complete remove an item out of an array ? I tried unset() as well as setting the value to null. Both result in the value being null but not the item being deleted. As far as I know, this is not possible. You can, however, create a new array and copy all values except the

RE: [PHP] Remove value from array

2001-06-25 Thread Kristian Duske
http://php.net/manual/en/language.types.array.php there is written: To change a certain value, just assign a new value to it. If you want to remove a key/value pair, you need to unset() it. Damn, I looked for that and didn't find it =). Anyway, thanks for the heads up. I was pretty sure it

RE: [PHP] Help with simple regular expression

2001-06-24 Thread Kristian Duske
body.* Try this: /\body[^\]*\/ Hope this helps Kristian -- 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]

RE: [PHP] mysql_free_result() question

2001-06-23 Thread Kristian Duske
Do I mysql_free_result the $Query or the $Result? If it's $Result, would this be the same as just going unset($Result)? mysql_free_result() frees the ressources that the MySQL server allocated for the results of your query. This is in the memory space of the MySQL server, while if you

[PHP] RE: [PHP-DB] Design conundrum...

2001-06-23 Thread Kristian Duske
The problem involves 2 tables, one of editors and one of categories, both have unique ID numbers. Each editor can have authority over an arbitrary number of categories, and conversely, each category can have an arbitrary number of editors. So what is the best way to represent this in the

[PHP] readfile() question

2001-06-23 Thread Kristian Duske
Hi there, I was wondering what happens if you call the readfile function to output a large binary file to a client with a slow connection. Does the script run until the whole file is sent to the client (leading to timeout errors on servers with a low max execution time) or does it fill some sort