MSQL_PCONNECT(3)MSQL_PCONNECT(3)msql_pconnect - Open persistent mSQL connectionSYNOPSIS
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
SYBASE_PCONNECT(3)SYBASE_PCONNECT(3)sybase_pconnect - Open persistent Sybase connectionSYNOPSIS
resource sybase_pconnect ([string $servername], [string $username], [string $password], [string $charset], [string $appname])
DESCRIPTION sybase_pconnect(3) acts very much like sybase_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 (sybase_close(3) will not close links established by sybase_pconnect(3)).
This type of links is therefore called 'persistent'.
PARAMETERS
o $servername
- The servername argument has to be a valid servername that is defined in the 'interfaces' file.
o $username
- Sybase user name
o $password
- Password associated with $username.
o $charset
- Specifies the charset for the connection
o $appname
- Specifies an appname for the Sybase connection. This allow you to make separate connections in the same script to the same data-
base. This may come handy when you have started a transaction in your current connection, and you need to be able to do a separate
query which cannot be performed inside this transaction.
RETURN VALUES
Returns a positive Sybase persistent link identifier on success, or FALSE on error.
SEE ALSO sybase_connect(3).
PHP Documentation Group SYBASE_PCONNECT(3)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)