Hi, <br><br>I attached the php extension for skype source im using right now.. it can send messages to my skype contacts <br>but it always shows this errors.. <br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<i>Warning: Mitteilung: CHATMESSAGE #yoshix86/$josephine.napari;e75bb81ba09f3252 -=-=-=-=-=-TEST-=-=-=-=-=- in /home/aqlx86/www-dev/dev/scheduler/cron/send_skype.php on line 7</i><br><i>ALERT - canary mismatch on efree() - heap overflow detected (attacker 'REMOTE_ADDR not set', file '/home/aqlx86/www-dev/dev/scheduler/cron/send_skype.php', line 7)</i><br>
</blockquote><br>it works when executed in command line but in cron its not working it says <b>could not connect to dbus</b> i think it needs some modification in the source but i dont know much in C language.<br><br>I trying to create a skype notification so php script check mysql db for new logs/events then sends it to my contact thats i want it to run in cron but its working T_T<br>
<br>thanks,<br><br><br>
<div class="gmail_quote">On Wed, Jun 18, 2008 at 7:10 PM, @4u <<a href="mailto:fd4u@vplace.de" target="_blank">fd4u@vplace.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Arnel,<br>
<br>
please find attached a more complicated example how to work with "ext_dbus".<br>
<br>
I'm using "org.freedesktop.DBus" and "org.freedesktop.Hal.Manager" to show some examples for synchronous and asynchronous calls. Please note that I do not recommend to use Session Bus clients like Skype. Beside a known bug in PHP you won't be able to communicate with a Session Bus of a different user by design. Running Skype as the web server user should be possible but I personally would not recommend to do that.<br>
<br>
Beside that I hope the examples help. Please do not hesitate to ask for details or more information if needed.<br>
<br>
Best regards<br>
Tobias<br>
<br>
Arnel Labarda schrieb:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
Hi,<br>
<br>
can you make another example how to connect to an application like skype using dbus php binding..<br>
<br>
hope to hear from you asap, thanks,<br>
<br>
-- <br>
----<br>
Registered Linux User #399942<br>
Ubuntu User #14134<br>
<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org" target="_blank">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
</blockquote>
<br>dclass_get_header ("type"))."\n";
$dbusheader = $f_message->dclass_get_header (1);
echo "Path:".$dbusheader[1]."\n";
$dbusheader = $f_message->dclass_get_header (3);
echo "Member:".$dbusheader[1]."\n\n";
print_r ($f_body);
echo "---\n";
}
// Connect to the D-BUS - please check the response in reallife applications ... it may fail and return false!
$dbus_session->dclass_connect ();
// Register a callback for signals of any type
$dbus_session->dclass_callback_register_listener ("signal","","","","dbus_print_r");
// Make a synchronous call and print out the (partly binary) response via print_r
print_r ($dbus_session->dclass_send_method_call_sync_response ("/","org.freedesktop.DBus","GetNameOwner","org.freedesktop.DBus",NULL,"s",(array ("org.freedesktop.DBus"))));
// Register two callbacks for Hal
$dbus_session->dclass_send_method_call_async_response ("dbus_print_r","/org/freedesktop/Hal/Manager","org.freedesktop.Hal.Manager","GetAllDevices","org.freedesktop.Hal");
$dbus_session->dclass_send_method_call_async_response ("dbus_print_r","/org/freedesktop/Hal/Manager","org.freedesktop.Hal.Manager","DeviceExists","org.freedesktop.Hal",NULL,"s",(array ("/org/freedesktop/Hal/devices/acpi_CPU0")));
echo "\n---\nReceive asynchronous replies\n---\n";
$dbus_session->dclass_callback_listen ();
// Disconnect "cleanly"
$dbus_session->dclass_disconnect ();
?><br></blockquote></div><br><br clear="all"><br>-- <br>----<br>Registered Linux User #399942<br>Ubuntu User #14134