Click here to Skip to main content
15,923,051 members
Home / Discussions / Web Development
   

Web Development

 
QuestionFileUpload not working with Ajax Pin
sandeep kumar pundhir1-Sep-06 3:26
sandeep kumar pundhir1-Sep-06 3:26 
QuestionASP programming Pin
saxena_hemant1-Sep-06 2:40
saxena_hemant1-Sep-06 2:40 
QuestionHI all Pin
Arun Kumar Babu31-Aug-06 23:17
Arun Kumar Babu31-Aug-06 23:17 
AnswerRe: Useless subject Pin
Guffa1-Sep-06 10:54
Guffa1-Sep-06 10:54 
QuestionHi all Pin
Arun Kumar Babu31-Aug-06 23:15
Arun Kumar Babu31-Aug-06 23:15 
Questionlogical drive Pin
248912831-Aug-06 20:41
248912831-Aug-06 20:41 
AnswerRe: logical drive Pin
User 17164921-Sep-06 2:10
professionalUser 17164921-Sep-06 2:10 
Questiondirectory browser in java script using activeX control Pin
248912831-Aug-06 19:22
248912831-Aug-06 19:22 
AnswerRe: directory browser in java script using activeX control Pin
User 17164921-Sep-06 2:09
professionalUser 17164921-Sep-06 2:09 
QuestionDifferent html with wininet than I.E. Pin
EpicYeti30-Aug-06 10:07
EpicYeti30-Aug-06 10:07 
AnswerRe: Different html with wininet than I.E. Pin
Guffa30-Aug-06 18:51
Guffa30-Aug-06 18:51 
QuestionRe: Different html with wininet than I.E. [modified] Pin
EpicYeti31-Aug-06 4:05
EpicYeti31-Aug-06 4:05 
AnswerRe: Different html with wininet than I.E. Pin
Guffa31-Aug-06 11:30
Guffa31-Aug-06 11:30 
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 

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.