I need to know the way. I have got parsing down some nodes. But I was unable to get the child node perfectly. If you have code please send it. It will be very useful for me. (0 Replies)
I'm trying to write a perl script that I can run as a cron job in root of my web server that will look for .shtml files get their last modified date and replace it in the sitemap_test.xml file. the problem is the substitution doesn't work and when I print to MYFILE it adds the lastmod to the end of... (3 Replies)
Hi All,
I have some data which needs to be saved in the xml file format.Can you guys please let me know how to do this using perl script.
NOTE: the template of the xml file shall be depending on validation of the data done for some requirements. Basically to summarise, the fields in the xml... (5 Replies)
Hi experts,
I have a set of xml files in folder which has the below field.
<mm:sessionID>157.235.206.12900397BE4:A</mm:sessionID>,
I need to update this field regularly with new session id, which I have it from a login file.
Can anyone tell me how to add a new value in <mm:sessionID>... (3 Replies)
I do have an xml sheet as below where I need the perl script to filter only the hyperlink tags.
<cols><col min="1" max="1" width="30.5703125" customWidth="1"/><col min="2" max="2" width="7.140625" bestFit="1" customWidth="1"/>
<col min="3" max="3" width="32.28515625" bestFit="1"... (3 Replies)
we have a CSV which i need to convert to XML using Perl or Unix shell scripting.
I was able to build this XML in oracle database. However, SQL/XML query is running for long time. Hence, I'm considering to write a Perl or shell script to generate this XML file. Basically need to build this XML... (3 Replies)
Hi Everyone,
I'm new here and I was checking this old post:
/shell-programming-and-scripting/180669-splitting-file-into-several-smaller-files-using-perl.html
(cannot paste link because of lack of points)
I need to do something like this but understand very little of perl.
I also check... (4 Replies)
Discussion started by: mcosta
4 Replies
LEARN ABOUT PHP
ibase_set_event_handler
IBASE_SET_EVENT_HANDLER(3) 1 IBASE_SET_EVENT_HANDLER(3)ibase_set_event_handler - Register a callback function to be called when events are postedSYNOPSIS
resource ibase_set_event_handler (callable $event_handler, string $event_name1, [string $event_name2], [string $...])
DESCRIPTION
resource ibase_set_event_handler (resource $connection, callable $event_handler, string $event_name1, [string $event_name2], [string
$...])
This function registers a PHP user function as event handler for the specified events.
PARAMETERS
o $event_handler
- The callback is called with the event name and the link resource as arguments whenever one of the specified events is posted by
the database. The callback must return FALSE if the event handler should be canceled. Any other return value is ignored. This
function accepts up to 15 event arguments.
o $event_name1
- An event name.
o $event_name2
- At most 15 events allowed.
RETURN VALUES
The return value is an event resource. This resource can be used to free the event handler using ibase_free_event_handler(3).
EXAMPLES
Example #1
ibase_set_event_handler(3) example
<?php
function event_handler($event_name, $link)
{
if ($event_name == "NEW ORDER") {
// process new order
ibase_query($link, "UPDATE orders SET status='handled'");
} else if ($event_name == "DB_SHUTDOWN") {
// free event handler
return false;
}
}
ibase_set_event_handler($link, "event_handler", "NEW_ORDER", "DB_SHUTDOWN");
?>
SEE ALSO ibase_free_event_handler(3), ibase_wait_event(3).
PHP Documentation Group IBASE_SET_EVENT_HANDLER(3)