Cofa Posted February 26, 2012 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 Link to comment Share on other sites More sharing options...
Larry Posted February 27, 2012 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/ Link to comment Share on other sites More sharing options...
Cofa Posted February 27, 2012 Author Share Posted February 27, 2012 Hi larry, I got it now. Thanks! Cofa 2/27/2012 Link to comment Share on other sites More sharing options...
Recommended Posts