Jump to content
Larry Ullman's Book Forums

Mysql Question: Does Mysql_Close() A Must Step?

Recommended Posts

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.]





Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...