Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

msql_pconnect(3) [php man page]

MSQL_PCONNECT(3)														  MSQL_PCONNECT(3)

msql_pconnect - Open persistent mSQL connection

SYNOPSIS
resource msql_pconnect ([string $hostname]) DESCRIPTION
msql_pconnect(3) acts very much like msql_connect(3) with two major differences. First, when connecting, the function would first try to find a (persistent) link that's already open with the same host. If one is found, an identifier for it will be returned instead of opening a new connection. Second, the connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use (msql_close(3) will not close links established by this function). PARAMETERS
o $hostname - The hostname can also include a port number. e.g. hostname,port. If not specified, the connection is established by the means of a Unix domain socket, being more efficient than a localhost TCP socket connection. Note While this function will accept a colon ( :) as a host/port separator, a comma ( ,) is the preferred method. RETURN VALUES
Returns a positive mSQL link identifier on success, or FALSE on error. SEE ALSO
msql_connect(3), msql_close(3). PHP Documentation Group MSQL_PCONNECT(3)

Check Out this Related Man Page

FBSQL_PCONNECT(3)							 1							 FBSQL_PCONNECT(3)

fbsql_pconnect - Open a persistent connection to a FrontBase Server

SYNOPSIS
resource fbsql_pconnect ([string $hostname = ini_get("fbsql.default_host")], [string $username = ini_get("fbsql.default_user")], [string $password = ini_get("fbsql.default_password")]) DESCRIPTION
Establishes a persistent connection to a FrontBase server. To set the server port number, use fbsql_select_db(3). fbsql_pconnect(3) acts very much like fbsql_connect(3) with two major differences: First, when connecting, the function would first try to find a (persistent) link that's already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection. Second, the connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use. This type of links is therefore called 'persistent'. PARAMETERS
o $hostname - The server host name. o $username - The user name for the connection. o $password - The password for the connection. RETURN VALUES
Returns a positive FrontBase persistent link identifier on success, or FALSE on error. SEE ALSO
fbsql_connect(3). PHP Documentation Group FBSQL_PCONNECT(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

opening port

i need to open port 1470. how do i do this. whats the command. This is on a solaris box. Thanks (1 Reply)
Discussion started by: ollyparkhouse
1 Replies

2. UNIX for Dummies Questions & Answers

Unix map?

There is a "Map"? of Unix and all its varients somewhere on the net. I used to have the link , but can't find it now. Anyone out there have a clue???? A good magician never reveals his secret; the unbelievable trick becomes simple and obvious once it is explained. So too with... (3 Replies)
Discussion started by: Bodhi
3 Replies

3. IP Networking

Networking problem ?

Hi, How to check whether a port is working properly or not ? I am getting a Error message Could not open connection to the host, on port 23: Connect failed. Thanks !! (1 Reply)
Discussion started by: dreams5617
1 Replies

4. IP Networking

Sniffing an established port

Hi All, On a solaris box A port B in which port B is established and receiving data. My question is how do i listen on that established port , how can i get the data received at box A: port B through my application I had searched the forum for the same, but i am unable to retrieve the... (5 Replies)
Discussion started by: matrixmadhan
5 Replies

5. HP-UX

Hung Port

Here's a difficult one for you. I am on HPUX 11.0. I have a hung port, it is stuck in FIN_WAIT_2. Short of rebooting, how can I terminate the connection the system thinks still exists? I found a script online that uses adb but have not been able to get it to work. I am still open to using... (6 Replies)
Discussion started by: TioTony
6 Replies

6. Solaris

Please help with opening a port??

Hello all, I need assistance... I need to open a port # 36677 and have it remain open even after a power cycle. I thought all I needed to do was add it to /etc/services. That was not it... Can someone please tell me how to do this. Thank you. (6 Replies)
Discussion started by: komputersman
6 Replies

7. UNIX for Advanced & Expert Users

Amend Unix hostname

Hi, Please could someone advise on the following if possible. I have built a unix server, and was given the wrong hostname. I need to amend the hostname to the correct name. And I don't want to rebuild the server again. I've tried the following to do change : hostname DTCT-TD3FIXI01A... (3 Replies)
Discussion started by: venhart
3 Replies

8. Solaris

how to open specific port

Dear members, My release is open Solaris b103 1- How to know the opening port in my system 2- How to open a specific port like port number 53 3- How to closed the specific port like port number 53 Your feedback highly appreciated (10 Replies)
Discussion started by: dellroxy
10 Replies

9. Programming

open a socket

hi all, i meet a problem when opening a socket, is that when the remote host not available or its port hanged ,my program still suspending untill i cancel the operation... but when the host is ok ,my program work ok. i handled in my code all these exceptions ,but my problem is when the host is... (6 Replies)
Discussion started by: Ahmed waheed
6 Replies

10. Programming

how to obtain a persistent oracle connection in proc*c pthread

Hi all, I have problem to set up a persistent oracle connection in child thread. We have a massive batch process dealing with large data. Application was written and impossible to be rewritten. I am trying to extract the most time consuming data fetching and put it into a dedicated child... (3 Replies)
Discussion started by: ora-dev
3 Replies

11. UNIX for Dummies Questions & Answers

Internet-"Notification"

Hello simple question: I want to run a script as soon as an internet connection is established. Is there an easy way to do this without checking every 10 seconds if there is/isn't a connection? Thanks! Alex (3 Replies)
Discussion started by: al0x
3 Replies

12. UNIX for Dummies Questions & Answers

How to find Hung connection in UNix Systems ?

Hi Gurus , How to find Hung connection in Unix Systems I use ps -ef | grep "XXXX" it lists out some conections..How to know what is hung connection in there.. (3 Replies)
Discussion started by: Hyp_Todd
3 Replies

13. Red Hat

Help: Find established conn source

Hi Friends, On one of my server which having direct connection to internet without firewall ..am seeing a established connection with SSH .. am not getting how ..there no login but I can see this established connection . ## have hidden original IPs with below notations for security concerns .... (0 Replies)
Discussion started by: Shirishlnx
0 Replies

14. UNIX for Beginners Questions & Answers

Telnet in script Connection closed by foreign host

Hello, I'm trying to learn and automate some tasks via a script, but my first ever script failed with "connection closed by foreign host" error. I checked the other discussions but it didn't help. Could you please help? #!/bin/bash ( sleep 2 echo open x.x.x.x 23 sleep 2 echo user sleep 2... (1 Reply)
Discussion started by: Myrtle
1 Replies

15. UNIX for Beginners Questions & Answers

Bash script, find the next closed (not in use) port from some port range.

hi, i would like to create a bash script that check which port in my Linux server are closed (not in use) from a specific range, port range (3000-3010). the print output need to be only 1 port, and it will be nice if the output will be saved as a variable or in same file. my code is: ... (2 Replies)
Discussion started by: yossi
2 Replies