I figured this didn't really fit into the "help" categories... maybe it does... i dunno.
anyway-- i was helping someone who i met here quite recently. we met on Y! msgr and i received some files. the guy (a fine fellow, i'm sure) is using some IDE which, not only does it insert deprecated functions such as mysql_create_db(), it seems to have him all mixed up! i'm not saying i have little faith in the 'programmer' because it looks like he's working on a cool idea, but i don't know how he ended up w/ some of this stuff. i guess the bottom line for him is this question: "do you want to learn to write php apps, or do you want to make one or two simple apps to satisfy your basic needs at the moment". in no way am i trying to say he's going about things the wrong way-- 'cause who's to tell someone what the do and do not need to learn, ya know? anyway...
apparently, this IDE makes "PHP include's" filename.php's for every damn fucntion- (eg. include dbconn.php; include dbselect.php, etc, etc) and then the html body, etc sliced up w/ a lot of <?php ?> open and close tags. to me, that is just plain confusing, although i could see how one might theorize that it is "clean" code. i dunno.
anyway-- the point is-- something about what i received-- the .php and the SQL caused my Apache2 to crash-- twice! the first time it was when i ran one of the php files in an attempt to help this guy w/ a query-- and the second was merely by opening up phpmyadmin and browsing the tables! how weird is that?
so-- has anyone ever experieced this? my theory is that it was because of mysql_pconnect() and i never closed the connection, but XP couldnt' restart the Apache service-- only a complete reboot fixed 'er up.
i'm curious to hear your advice on such things. i realize the inherent security risks, but i also enjoy helping others. what, if anything, could i do to prevent this from happening? should i have taken a better look at the code before running it? but-- there wasn't really anything there, sans the $dbconn and a simple mysql_query and a while loop! nothing! really-- i have no idea what caused this weirdness.
just looking for somefeedback from the wise ones up here on the hill. it doesn't have to he any "how to" type feedback at all-- just wanna hear your thoughts, opnion, and help too if you have some regarding "precautionary security".
thanks!