php mysql problem?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pc_newbie

    php mysql problem?

    Hi, i got a problem with php->mysql

    Fatal error: Call to undefined function: mysql_pconnect( ) in
    /var/www/update.php on line 4

    both php and mysql are installed into debian, but don't know how to make
    them working together

  • elyob

    #2
    Re: php mysql problem?


    "pc_newbie" <ay@computermai l.net> wrote in message
    news:3fb10afc_1 @news.iprimus.c om.au...[color=blue]
    > Hi, i got a problem with php->mysql
    >
    > Fatal error: Call to undefined function: mysql_pconnect( ) in
    > /var/www/update.php on line 4
    >
    > both php and mysql are installed into debian, but don't know how to make
    > them working together
    >[/color]

    Which version of PHP? If it's PHP 5 beta, you need to get the mysql dll,
    install it and edit the php.conf


    Comment

    • Marouen

      #3
      Re: php mysql problem?


      "pc_newbie" <ay@computermai l.net> a écrit dans le message news:
      3fb10afc_1@news .iprimus.com.au...[color=blue]
      > Hi, i got a problem with php->mysql
      >
      > Fatal error: Call to undefined function: mysql_pconnect( ) in
      > /var/www/update.php on line 4
      >
      > both php and mysql are installed into debian, but don't know how to make
      > them working together
      >[/color]

      Check you have php_mysql rpm installed !

      Marouen


      Comment

      • pc_newbie

        #4
        Re: php mysql problem?

        Marouen wrote:[color=blue]
        > "pc_newbie" <ay@computermai l.net> a ?rit dans le message news:
        > 3fb10afc_1@news .iprimus.com.au...
        >[color=green]
        >>Hi, i got a problem with php->mysql
        >>
        >>Fatal error: Call to undefined function: mysql_pconnect( ) in
        >>/var/www/update.php on line 4
        >>
        >>both php and mysql are installed into debian, but don't know how to make
        >> them working together
        >>[/color]
        >
        >
        > Check you have php_mysql rpm installed !
        >
        > Marouen
        >
        >[/color]

        i am using php4.1.2 under debian 3, both php and mysql work individually
        well, but i can't make connections to mysql server only.

        Comment

        • burnabyryan

          #5
          Re: php mysql problem?

          um line 4 mysql_pconnect( ) is that a spelling error or what your code is


          "pc_newbie" <ay@computermai l.net> wrote in message
          news:3fb308e2$1 _1@news.iprimus .com.au...[color=blue]
          > Marouen wrote:[color=green]
          > > "pc_newbie" <ay@computermai l.net> a ?rit dans le message news:
          > > 3fb10afc_1@news .iprimus.com.au...
          > >[color=darkred]
          > >>Hi, i got a problem with php->mysql
          > >>
          > >>Fatal error: Call to undefined function: mysql_pconnect( ) in
          > >>/var/www/update.php on line 4
          > >>
          > >>both php and mysql are installed into debian, but don't know how to make
          > >> them working together
          > >>[/color]
          > >
          > >
          > > Check you have php_mysql rpm installed !
          > >
          > > Marouen
          > >
          > >[/color]
          >
          > i am using php4.1.2 under debian 3, both php and mysql work individually
          > well, but i can't make connections to mysql server only.
          >[/color]


          Comment

          • Savut

            #6
            Re: php mysql problem?

            check your php.ini config to allow "persistent connection" ->
            mysql_pconnect( );

            Savut

            "burnabyrya n" <rking@radiant. net> a écrit dans le message de
            news:vr669psubd mabb@corp.super news.com...[color=blue]
            > um line 4 mysql_pconnect( ) is that a spelling error or what your code is
            >
            >
            > "pc_newbie" <ay@computermai l.net> wrote in message
            > news:3fb308e2$1 _1@news.iprimus .com.au...[color=green]
            > > Marouen wrote:[color=darkred]
            > > > "pc_newbie" <ay@computermai l.net> a ?rit dans le message news:
            > > > 3fb10afc_1@news .iprimus.com.au...
            > > >
            > > >>Hi, i got a problem with php->mysql
            > > >>
            > > >>Fatal error: Call to undefined function: mysql_pconnect( ) in
            > > >>/var/www/update.php on line 4
            > > >>
            > > >>both php and mysql are installed into debian, but don't know how to[/color][/color][/color]
            make[color=blue][color=green][color=darkred]
            > > >> them working together
            > > >>
            > > >
            > > >
            > > > Check you have php_mysql rpm installed !
            > > >
            > > > Marouen
            > > >
            > > >[/color]
            > >
            > > i am using php4.1.2 under debian 3, both php and mysql work individually
            > > well, but i can't make connections to mysql server only.
            > >[/color]
            >
            >[/color]


            Comment

            • pc_newbie

              #7
              Re: php mysql problem?

              burnabyryan wrote:[color=blue]
              > um line 4 mysql_pconnect( ) is that a spelling error or what your code is
              >
              >
              > "pc_newbie" <ay@computermai l.net> wrote in message
              > news:3fb308e2$1 _1@news.iprimus .com.au...
              >[color=green]
              >>Marouen wrote:
              >>[color=darkred]
              >>>"pc_newbie " <ay@computermai l.net> a ?rit dans le message news:
              >>>3fb10afc_1@n ews.iprimus.com .au...
              >>>
              >>>
              >>>>Hi, i got a problem with php->mysql
              >>>>
              >>>>Fatal error: Call to undefined function: mysql_pconnect( ) in
              >>>>/var/www/update.php on line 4
              >>>>
              >>>>both php and mysql are installed into debian, but don't know how to make
              >>>> them working together
              >>>>
              >>>
              >>>
              >>>Check you have php_mysql rpm installed !
              >>>
              >>>Marouen
              >>>
              >>>[/color]
              >>
              >>i am using php4.1.2 under debian 3, both php and mysql work individually
              >>well, but i can't make connections to mysql server only.
              >>[/color]
              >
              >
              >[/color]

              spelling is correct, i have tried mysql_connect() and
              mysql_pconnect( )but got the same error message/

              Comment

              Working...