Click here to Skip to main content
15,896,915 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Different html with wininet than I.E. Pin
EpicYeti1-Sep-06 3:59
EpicYeti1-Sep-06 3:59 
QuestionNeed documenting tutorial Pin
crsdfzfaffafsdfa30-Aug-06 2:57
crsdfzfaffafsdfa30-Aug-06 2:57 
QuestionASP BOUNCE MAIL Pin
Arghya_mp30-Aug-06 0:24
Arghya_mp30-Aug-06 0:24 
QuestionWhy PayPal always INVALID, it's not VERIFIED? Pin
Hy Chanhan29-Aug-06 23:18
professionalHy Chanhan29-Aug-06 23:18 
QuestionSMTP authentication Pin
Waldermort29-Aug-06 21:47
Waldermort29-Aug-06 21:47 
QuestionHow can i install IPN on my web server? Pin
Hy Chanhan29-Aug-06 21:23
professionalHy Chanhan29-Aug-06 21:23 
AnswerRe: How can i install IPN on my web server? Pin
Sage2-Sep-06 9:08
Sage2-Sep-06 9:08 
Questionhigh memory usage for PHP/MySQL page Pin
Dave Calkins29-Aug-06 15:18
Dave Calkins29-Aug-06 15:18 
My hosting provider told me I was using too much memory (the CPU usage and bandwidth are ok though) with my .php pages. I have a client app making HTTP requests to the PHP pages which in turn query a MySQL database.

The rough structure of the PHP page is as shown below:

===
global $db_conn;
$db_conn = mysql_connect(DB_HOST,DB_USER,DB_PASSWORD)
or die(db_err('Unable to connect to database server'));
db_select_db(DB_NAME)
or die(db_err('Unable to select database'));

// DB queries, etc.

// ...
===

From reading the docs for mysql_connect() it would appear the connection should be closed automatically when the script finishes.

Do I need to add an explicit close? I was thinking of adding the below:

mysql_close($db_conn);
$db_conn = NULL;

Should the above do the trick? Is there something else I need to do?

Thanks Smile | :)

AnswerRe: high memory usage for PHP/MySQL page Pin
CWIZO30-Aug-06 1:14
CWIZO30-Aug-06 1:14 
QuestionStart an application in the client-side Pin
Victor Fan 8829-Aug-06 6:38
Victor Fan 8829-Aug-06 6:38 
AnswerRe: Start an application in the client-side Pin
CWIZO30-Aug-06 1:15
CWIZO30-Aug-06 1:15 
QuestionHow do I allow users to create their own webpage/personal page? Pin
CCMint29-Aug-06 5:49
CCMint29-Aug-06 5:49 
AnswerRe: How do I allow users to create their own webpage/personal page? Pin
Bradml4-Sep-06 22:59
Bradml4-Sep-06 22:59 
QuestionClearing the contents of session variables Pin
Rajiya29-Aug-06 1:01
Rajiya29-Aug-06 1:01 
AnswerRe: Clearing the contents of session variables Pin
Navi1529-Aug-06 1:59
Navi1529-Aug-06 1:59 
AnswerRe: Clearing the contents of session variables Pin
Guffa29-Aug-06 2:44
Guffa29-Aug-06 2:44 
Questiontree view of client's computer Pin
248912829-Aug-06 0:12
248912829-Aug-06 0:12 
AnswerRe: tree view of client's computer Pin
_AK_29-Aug-06 19:26
_AK_29-Aug-06 19:26 
GeneralRe: tree view of client's computer Pin
CWIZO30-Aug-06 1:16
CWIZO30-Aug-06 1:16 
Questionprinting web page Directly Pin
meetbinu200328-Aug-06 19:52
meetbinu200328-Aug-06 19:52 
AnswerRe: printing web page Directly Pin
_AK_29-Aug-06 1:08
_AK_29-Aug-06 1:08 
GeneralRe: printing web page Directly Pin
meetbinu200330-Aug-06 4:48
meetbinu200330-Aug-06 4:48 
QuestionHow can I display an animated progress bar during asp upload? Pin
JUNEYT28-Aug-06 13:18
JUNEYT28-Aug-06 13:18 
AnswerRe: How can I display an animated progress bar during asp upload? Pin
John Petersen29-Aug-06 23:46
John Petersen29-Aug-06 23:46 
GeneralRe: How can I display an animated progress bar during asp upload? Pin
JUNEYT30-Aug-06 1:56
JUNEYT30-Aug-06 1:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.