MEMCACHE.PCONNECT(3) 1 MEMCACHE.PCONNECT(3)Memcache::pconnect - Open memcached server persistent connection
SYNOPSIS
mixed Memcache::pconnect (string $host, [int $port], [int $timeout])
DESCRIPTION Memcache.pconnect(3) is similar to Memcache.connect(3) with the difference, that the connection it establishes is persistent. This connec-
tion is not closed after the end of script execution and by Memcache.close(3) function. Also you can use memcache_pconnect(3) function.
PARAMETERS
o $host
- Point to the host where memcached is listening for connections. This parameter may also specify other transports like
unix:///path/to/memcached.sock to use UNIX domain sockets, in this case $port must also be set to 0.
o $port
- Point to the port where memcached is listening for connections. Set this parameter to 0 when using UNIX domain sockets.
o $timeout
- Value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second -
you can lose all the advantages of caching if your connection is too slow.
RETURN VALUES
Returns a Memcache object or FALSE on failure.
EXAMPLES
Example #1
Memcache.pconnect(3) example
<?php
/* procedural API */
$memcache_obj = memcache_pconnect('memcache_host', 11211);
/* OO API */
$memcache_obj = new Memcache;
$memcache_obj->pconnect('memcache_host', 11211);
?>
SEE ALSO Memcache.connect(3).
PHP Documentation Group MEMCACHE.PCONNECT(3)
Check Out this Related Man Page
MEMCACHE.CONNECT(3) 1 MEMCACHE.CONNECT(3)Memcache::connect - Open memcached server connection
SYNOPSIS
bool Memcache::connect (string $host, [int $port], [int $timeout])
DESCRIPTION Memcache.connect(3) establishes a connection to the memcached server. The connection, which was opened using Memcache.connect(3) will be
automatically closed at the end of script execution. Also you can close it with Memcache.close(3). Also you can use memcache_connect(3)
function.
PARAMETERS
o $host
- Point to the host where memcached is listening for connections. This parameter may also specify other transports like
unix:///path/to/memcached.sock to use UNIX domain sockets, in this case $port must also be set to 0.
o $port
- Point to the port where memcached is listening for connections. Set this parameter to 0 when using UNIX domain sockets. Please
note: $port defaults to memcache.default_port if not specified. For this reason it is wise to specify the port explicitly in this
method call.
o $timeout
- Value in seconds which will be used for connecting to the daemon. Think twice before changing the default value of 1 second -
you can lose all the advantages of caching if your connection is too slow.
NOTES
Warning
When the $port is unspecified, this method defaults to the value set of the PHP ini directive memcache.default_port If this value
was changed elsewhere in your application it might lead to unexpected results: for this reason it is wise to always specify the port
explicitly in this method call.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Memcache.connect(3) example
<?php
/* procedural API */
$memcache_obj = memcache_connect('memcache_host', 11211);
/* OO API */
$memcache = new Memcache;
$memcache->connect('memcache_host', 11211);
?>
SEE ALSO Memcache.pconnect(3), Memcache.close(3).
PHP Documentation Group MEMCACHE.CONNECT(3)
Hi,
I am having some error handling issues with and fd passed between Independent processes using unix domain sockets (On HPUX).
Here is the scnerio
=================
Step 1: TPC/Client (connect()) ---Connects to ------TCP/Server(Gateway) (server gets fd)
Step 2: ... (2 Replies)
Hello everyone,
I'm very interested in sockets programming
for developing games.
Right now i'm trying to develop a client,
and connecting to a host and port can be done,
but i googled lots of pages,
but i could not find how to reconnect
to the host/port if the connection is somehow... (2 Replies)
Hello- On Solaris 10g x86 - I had two IP addresses , one for unix host (connecting through putty) and one for ILOM (connecting through CLI and web). I had to perform some changes in FS sizes etc, did that on unix host and executed command 'init 6' remotely for them to take place. But, the unix host... (30 Replies)
Hi,
I am little bit new to this scripting langauge as such, though I know the basics.
I want to write a C script which connect to a server which is listening on tcp/ip via port number 6901 with username and password and then i have to call various services to test the server.
Can some one help... (7 Replies)
On my VPS server I have a port that is open and is listening for a 'status' command when you connect to it to like so...
$ telnet host 1900
Trying host...
Connected to host.
Escape character is '^]'.
status
QMAIL;OK
APACHE;OK
HTTPD;OK
CRON;OK
Wondering if what command I can attempt... (2 Replies)
Howdy Experts,
This is my first post here and I am posting because I have not been able to find an answer for this question.
How do you find out what process is listening on a given port? I do not have "lsof" available and how do we find this out without logging in as Root.
I know that this... (5 Replies)
My aix boxes have the port 25 listening and I want to bock that. But before that I want to check the recent logs of the sendmail activity and any open sockets using the port. Please advise. (1 Reply)
what is a assembler
what isa interpreter
what is a compiler
what is a socket
what is a port
what is meant by listening to a port how we do it
how to know version and standard of unix one is using when one is on public access unix account
how to see a jobid in... (1 Reply)
HI !!
I have this setup where I have Windows machine and a UNIX based DUT .
I try to make a https connection from my Win to the DUT giving its IP.
But,it is not working (It should do).
What do u think the problem is ?? I checked the logs , they flag some writesocket:broken pipe error in... (1 Reply)
Hello,
I want to setup Nagios with service Memcache...We have Amazon Cloud..Please help me to setup this service on my Nagios Client.
How to check Memcache is working or not on my server??
1. Please provide us the command defination to set on Nagios Server for .cfg file.
2.Please provide... (1 Reply)