05-20-2010
i request the admin to close the thread please ,this thread is pretty close to being dead
Last edited by rohit_shetty; 05-20-2010 at 05:56 PM..
7 More Discussions You Might Find Interesting
1. Cybersecurity
I need to set up an application to run in a script which will be running as a web server but is a database. I need to allow users to use the web server but the app must be run as root in order for the ports to be accessible. This is not a very secure environment would like to know how this could... (2 Replies)
Discussion started by: rpollard
2 Replies
2. UNIX Benchmarks
==============================================================
BYTE UNIX Benchmarks (Version 3.11)
System -- SunOS as-1 5.8 Generic_108528-24 sun4u sparc SUNW,UltraAX-i2
Start Benchmark Run: Tue Jan 27 15:07:18 NZDT 2004
3 interactive users.
Dhrystone 2 without register variables ... (0 Replies)
Discussion started by: mattd
0 Replies
3. UNIX for Advanced & Expert Users
Hi guys,
Just needed to know if all the ports above 1024 are closed by default. I know that below 1024 the ports are reserved for the kernel and ports above 1024 are reserved for user applications.
But by default, if I do not have a rule in my firewall to block ports above 1024, Will my... (4 Replies)
Discussion started by: firefox211
4 Replies
4. Red Hat
Hi All,
How do I know if ssh_host_rsa_key is 1024 bit?
cat /etc/ssh/ssh_host_rsa_key | wc -m
887
It's only 887. Is that it? Or not?
Thank you for any comment you may add. (2 Replies)
Discussion started by: itik
2 Replies
5. UNIX for Dummies Questions & Answers
How to generate RSA 1024 public key??
Pls help (3 Replies)
Discussion started by: kdtrica
3 Replies
6. Shell Programming and Scripting
Hi i have a txt file in which i do a awk operation with ":" as field separator
A
B
C
D
ABC::2386.13:2386.13:3248234281995::+DPY:INT:3:N::::2:200.00:0.00:2010-05-12:CA:
::2:N::N:PH:00010031:0001+DPY:BAL:3:N::::3:1601.01:0.00:2010-05-12:XT::2:N:MR ... (1 Reply)
Discussion started by: mad_man12
1 Replies
7. Red Hat
I will shortly be adding a fedora flavor to my devel box. I currently have XP (installed first on an ssd), ubuntu 10.04 (installed second on the first partition of a platter drive), and I want to add either Cent or SL on the second partition of the platter drive. I will probably also want to... (0 Replies)
Discussion started by: LMHmedchem
0 Replies
LEARN ABOUT PHP
maxdb_thread_id
MAXDB_THREAD_ID(3) 1 MAXDB_THREAD_ID(3)
maxdb_thread_id - Returns the thread ID for the current connection
Procedural style
SYNOPSIS
int maxdb_thread_id (resource $link)
DESCRIPTION
Object oriented style
int$maxdb->thread_id ()
The maxdb_thread_id(3) function returns the thread ID for the current connection which can then be killed using the maxdb_kill(3) func-
tion. If the connection is lost and you reconnect with maxdb_ping(3), the thread ID will be other. Therefore you should get the thread ID
only when you need it.
Note
The thread ID is assigned on a connection-by-connection basis. Hence, if the connection is broken and then re-established a new
thread ID will be assigned.
RETURN VALUES
maxdb_thread_id(3) returns the Thread ID for the current connection.
EXAMPLES
Example #1
Object oriented style
<?php
$maxdb = new maxdb("localhost", "MONA", "RED", "DEMODB");
/* check connection */
if (maxdb_connect_errno()) {
printf("Connect failed: %s
", maxdb_connect_error());
exit();
}
/* determine our thread id */
$thread_id = $maxdb->thread_id;
/* Kill connection */
$maxdb->kill($thread_id);
/* This should produce an error */
if (!$maxdb->query("CREATE TABLE mycity LIKE hotel.city")) {
printf("Error: %s
", $maxdb->error);
exit;
}
/* close connection */
$maxdb->close();
?>
Example #2
Procedural style
<?php
$link = maxdb_connect("localhost", "MONA", "RED", "DEMODB");
/* check connection */
if (maxdb_connect_errno()) {
printf("Connect failed: %s
", maxdb_connect_error());
exit();
}
/* determine our thread id */
$thread_id = maxdb_thread_id($link);
/* Kill connection */
maxdb_kill($link, $thread_id);
/* This should produce an error */
if (!maxdb_query($link, "CREATE TABLE mycity LIKE hotel.city")) {
printf("Error: %s
", maxdb_error($link));
exit;
}
/* close connection */
maxdb_close($link);
?>
The above example will output something similar to:
Warning: maxdb_query(): -10821 Session not connected <...>
Error: Session not connected
SEE ALSO
maxdb_kill(3).
PHP Documentation Group MAXDB_THREAD_ID(3)