problems using mysql_pconnect effectively

From: Fu, Ren-Li (frl8_at_rogers.com)
Date: 10/18/04

  • Next message: Sven: "preg_replace with "eval"?"
    Date: Mon, 18 Oct 2004 04:48:49 -0400
    
    

    Hello;

    I am just getting back into php, and of course I have some sort of
    problem. Simply, the following code appears to hang. It is almost as if
    the following line of php code never returns:

    $this->id = @mysql_pconnect("localhost", "user", "pass") or
    MySQL_ErrorMsg("Unable to connect to MySQL server: $this->host :
    '$SERVER_NAME'");

    I've tried user root with correct password and also user (insert
    username here) with correct password. Where should I start looking to
    solve this.. thanks..

    -frl

    p.s. windows xp, apache 2, php5, mysql something or other


  • Next message: Sven: "preg_replace with "eval"?"

    Relevant Pages

    • problem using mysql_pconnect effectively
      ... the following code appears to hang. ... the following line of php code never returns: ... I've tried user root with correct password and also user (insert ...
      (alt.php)
    • Re: where do you store app wide data?
      ... Thanks -feel like I am talking in a foriegn language here! ... Hang on, I suppose thats exacctly what I am doing!! ... in PHP world. ... > Andrew Bullock wrote: ...
      (alt.php)
    • Re: MySQL: 11 Mil Rows = Slow Performance!
      ... This one is for PHP, not MySQL, ... and generally the MySQL experts don't hang out here. ... Jerry Stuckle ...
      (comp.lang.php)
    • Re: exec() Silent Death
      ... stream or else PHP will hang until the execution of the program ...
      (alt.php)
    • Re: PHP "speed coding" tips
      ... I wondered what if any methods people here use to speed up their PHP ... Things like 'code templates', 'base objects' for this and that? ... Some of the frameworks can add some speed once you get the hang of ... Check out CakePHP: ...
      (comp.lang.php)