SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Mar 2002
    Location
    Miami, Florida - Caracas, Venezuela
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Persistent connections in PHP and Asterisk PBX

    How are persistent connection to mysql handeled when running php from the commando line?

    Just in case, I'm worried about db connections when using php to execute some logic from asterisk (pbx) using the AGI PHP (see: http://www.voip-info.org/tiki-index....terisk+AGI+php).

    Thank you,
    Luis

  2. #2
    SitePoint Enthusiast escape164's Avatar
    Join Date
    Dec 2002
    Location
    Colorado, USA
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Luis-

    Not quite sure about exactly how PHP handles persistent connections. Knowing a bit of the technology behind it all, I would guess that it would operate exactly the way you'd expect it to via a web browser. ie. Before opening a new db connection, the script would search and see if a socket has already been opened.

    More information: http://us2.php.net/manual/en/feature...onnections.php

    This is a sidenote, but I'm curious what you're up to with Asterisk? My two cards from Digium should arrive either today or tomorrow (shipped via slow boat) and I can't wait to see what I can put together. I've been to the link you mentioned and have a ton of ideas swirling around for using PHP and Asterisk.

    Maybe we could work together and get the first PHP/Asterisk open source project started, now that would be cool.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •