Guys there is another bug that has developed.........now messaged above 6 bytes are trimmed and echoed back to client.After the first message the echo is not regular.I have put a loop in both client and server to check for closing.Moreover for connection close i also need to put another clause that if there is a connection break in either server or client the connection should be closed from other side.Below are the server and clinet side codes after connection
Server
Client Side
Last edited by reborg; 07-23-2007 at 09:03 AM..
Reason: code tags
Can you please tell me how Gollum was created for a forum? I know of the ALICE and other bots but integrating the interface has always been my wish... Can someone give me some pointers on how to achieve this? (2 Replies)
Hi friend,:)
The script should invoke these scripts sequentially!
When one will finish the second will start.
Please help me with it,
thanks,:b:
Ishai (3 Replies)
I need to rebuild an application that developed in unix environment and run in windows OS with cygwin. so How can I rebuild from the source code?
is there any one who said something on this regard? (2 Replies)
hi,
i want to start developing an ios app that can be used on iphone and ipad. can anyone guide me how to start? i saw that it can be developed only on a mac system.. but i dont have a mac system. i have an ipad 4 and a laptop with windows os? can i use one of these to start developing ios app??... (4 Replies)
Discussion started by: Little
4 Replies
LEARN ABOUT PHP
pg_version
PG_VERSION(3)PG_VERSION(3)pg_version - Returns an array with client, protocol and server version (when available)SYNOPSIS
array pg_version ([resource $connection])
DESCRIPTION pg_version(3) returns an array with the client, protocol and server version. Protocol and server versions are only available if PHP was
compiled with PostgreSQL 7.4 or later.
For more detailed server information, use pg_parameter_status(3).
PARAMETERS
o $connection
- PostgreSQL database connection resource. When $connection is not present, the default connection is used. The default connection
is the last connection made by pg_connect(3) or pg_pconnect(3).
RETURN VALUES
Returns an array with client, protocol and server keys and values (if available). Returns FALSE on error or invalid connection.
EXAMPLES
Example #1
pg_version(3) example
<?php
$dbconn = pg_connect("host=localhost port=5432 dbname=mary")
or die("Could not connect");
$v = pg_version($dbconn);
echo $v['client'];
?>
The above example will output:
7.4
SEE ALSO pg_parameter_status(3).
PHP Documentation Group PG_VERSION(3)