Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fbsql_pconnect(3) [php 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)

Check Out this Related Man Page

FBSQL_DATABASE_PASSWORD(3)						 1						FBSQL_DATABASE_PASSWORD(3)

fbsql_database_password - Sets or retrieves the password for a FrontBase database

SYNOPSIS
string fbsql_database_password (resource $link_identifier, [string $database_password]) DESCRIPTION
Sets and retrieves the database password used by the connection. If a database is protected by a database password, the user must call this function before calling fbsql_select_db(3). If no link is open, the function will try to establish a link as if fbsql_connect(3) was called, and use it. This function does not change the database password in the database nor can it be used to retrieve the database password for a database. PARAMETERS
o $ link_identifier -A FrontBase link identifier returned by fbsql_connect(3) or fbsql_pconnect(3).If optional and not specified, the function will try to find an open link to the FrontBase server and if no such link is found it will try to create one as if fbsql_connect(3) was called with no arguments. o $database_password - The database password, as a string. If given, the function sets the database password for the specified link identifier. RETURN VALUES
Returns the database password associated with the link identifier. EXAMPLES
Example #1 fbsql_create_clob(3) example <?php $link = fbsql_pconnect("localhost", "_SYSTEM", "secret") or die("Could not connect"); fbsql_database_password($link, "secret db password"); fbsql_select_db($database, $link); ?> SEE ALSO
fbsql_connect(3), fbsql_pconnect(3), fbsql_select_db(3). PHP Documentation Group FBSQL_DATABASE_PASSWORD(3)
Man Page

13 More Discussions You Might Find Interesting

1. Cybersecurity

Rmi

Hi , I am a beginner to JAVA . I am having trouble understanding the RMI connection . I am trying to write a server which does the following : 1. Establishes a connection with a co-ordinator called Dispatcher through RMI . The Dispatcher actually contains the list of Providers where the servers... (0 Replies)
Discussion started by: ANAMIKA56
0 Replies

2. Solaris

how can obtain other user commands on the same server.

hi buddies, i want to learn something,so that we have several users on a sun server and via telnet, we are connecting to server same username and password root/something as root and after connection i want to see what other roots or users are doing on the server, i want to see their command.... (2 Replies)
Discussion started by: nibiru78
2 Replies

3. Cybersecurity

"421 service not available, remote server has closed connection."?

"421 service not available, remote server has closed connection." I tried to do ftp to one of the unix server . ftp hostname password It get connects when i do any command it throws error ftp> ls "421 service not available, remote server has closed connection." (1 Reply)
Discussion started by: vishaldsh
1 Replies

4. Solaris

i wanto hardcode password for a username to ssh to a server using script

Dear all i want to ssh to a server via running a shell script with a username and i want to hard code the password for that particular username can u help me please Thank u Naree (8 Replies)
Discussion started by: naree
8 Replies

5. 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

6. UNIX for Dummies Questions & Answers

How to find the server ip is alive ?

How to write a shell script to find ports are open for the server. Thanks in advance. regards krackjack (4 Replies)
Discussion started by: krackjack
4 Replies

7. UNIX for Dummies Questions & Answers

need assistance on Calling DB user from separate file in Shell script

Hi All, I need to execute a SQL via shell script and i am connecting to Oracle DB by this way $USERNAME1/$PASSWORD1@$STRING1 and i need to get username, password and string from someother file stored in the Unix Directory. $Username, $Password and $String is stored in File A in Path A and i want... (1 Reply)
Discussion started by: sathish.tn
1 Replies

8. Shell Programming and Scripting

Calling DB user from separate file in Shell script

Hi All, I need to execute a SQL via shell script and i am connecting to Oracle DB by this way $USERNAME1/$PASSWORD1@$STRING1 and i need to get username, password and string from someother file stored in the Unix Directory. $Username, $Password and $String is stored in File A in Path A and i want... (3 Replies)
Discussion started by: sathish.tn
3 Replies

9. AIX

Unable to add persistent IP

i am trying to make HACMP but when i add a persistent ip, error shows unable to determine address for 'UPIDGIS1_pers' pls help me out AIX - 5.3 HACMP -5.4 thanks (2 Replies)
Discussion started by: reply.ravi
2 Replies

10. What is on Your Mind?

Why am I persistent to be WRONG!

(2 Replies)
Discussion started by: animesharma
2 Replies

11. 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

12. Shell Programming and Scripting

Need to use another file in script

hi everyone, i making script in KSH AIX server i n which i am calling sql connection, i want password and username stored in another directory and in my script it looks like sqlpus -s $username/$password @eod.sql and my username and password stored in file databaseconnection like this... (2 Replies)
Discussion started by: pallvi_mahajan
2 Replies

13. Shell Programming and Scripting

SSH Connectivity

I am trying to setup a password less connection from a Linux server to Window server and will be using a script to scp a file without using password. Linux Server (source) servername : testlinux id : testbatch Windows Server (Target) servername : testwin id : testwinlogin I copied... (5 Replies)
Discussion started by: dr46014
5 Replies