Cofa 0 Posted February 26, 2012 Report Share Posted February 26, 2012 Hello all, I have been into learning and "playing with" some simple coding with php and mysql recently. Currently I am playing with accessing database of a remote database server from another website - so far things are in progress! (It was a complicated process in the beginning - I will share my experience sometime when my time is more flexible. Reference in book: Page 351, Tips item #2.) There is one question I wonder if you could help me clarify: Does mysql_close() a *must step* in a script? Currently in my few scripts in my studies (I started just recently), I noticed I do not have this closing command in my scripts but the purposes of the scripts seemed to be fulfiled well. But I am curious if this "bad habit" could cause damage or security risk to the database host server (normally on a remote site), or to the server of the calling site (a website outside the database host site). [Well, I do own all these sites that are hosted by different hosting companies.] Thanks, Cofa 2/26/2012 Quote Link to post Share on other sites
Larry 428 Posted February 27, 2012 Report Share Posted February 27, 2012 Check out this thread: http://www.larryullman.com/forums/index.php?/topic/1041-clarification-on-when-to-use-mysqli-closedbc-and-mysql-free-result/ Quote Link to post Share on other sites
Cofa 0 Posted February 27, 2012 Author Report Share Posted February 27, 2012 Hi larry, I got it now. Thanks! Cofa 2/27/2012 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.