Hello. I am attempting to write a pretty complex script that monitors a forum and alerts me whenever a new post is made (this part of the script is done). I then want to have the script auto reply to the post with a predetermined message. The one catch here is this is a VERY popular forum. ... (0 Replies)
Hello everybody!
I have no experience with shell Programmer, but I need to compare 02 files. Txt and generate an output or a new file, after the comparisons. see:
If the column 1 of file1 is equal to column 1 of file2, and column 3 of file2 contains the column 4 of file1, output: column1... (4 Replies)
A file contains the following data
Name, Age, Sex, city, country
abc, 20, m, tokyo, Japan
def, 21, f, sydney, Australia
ghd, 23, m, chicago, USA
rww, 29, f, london, UK
I need the city column to be replaced with XXX as follows
Name, Age, Sex, city, country
abc, 20, m, XXX, Japan... (8 Replies)
Just a quick update; to speed up the forums, I have disabled the forum statistics on the home page for non registered users.
No changes for registered users. (0 Replies)
For mobile users, I have just added a "first beta" Advanced Forum Statistics to the home page on mobile using CSS overflow:auto; so you can swipe if you need to see more. Google Search Console mobile usability says this page is "mobile friendly" so perhaps this will be useful for some of our... (12 Replies)
Discussion started by: Neo
12 Replies
LEARN ABOUT PHP
maxdb_kill
MAXDB_KILL(3) 1 MAXDB_KILL(3)maxdb_kill - Disconnects from a MaxDB server
Procedural style
SYNOPSIS
bool maxdb_kill (resource $link, int $processid)
DESCRIPTION
Object oriented style
bool maxdb::kill (int $processid)
This function is used to disconnect from a MaxDB server specified by the $processid parameter.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
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 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 City")) {
printf("Error: %s
", maxdb_error($link));
exit;
}
/* close connection */
maxdb_close($link);
?>
The above example will output something similar to:
Error: Session not connected
SEE ALSO maxdb_thread_id(3).
PHP Documentation Group MAXDB_KILL(3)