D-BUS PHP Binding
Arnel Labarda
aqlx86 at gmail.com
Wed Jun 18 02:36:34 PDT 2008
Hi,
I attached the php extension for skype source im using right now.. it can
send messages to my skype contacts
but it always shows this errors..
*Warning: Mitteilung: CHATMESSAGE
> #yoshix86/$josephine.napari;e75bb81ba09f3252 -=-=-=-=-=-TEST-=-=-=-=-=- in
> /home/aqlx86/www-dev/dev/scheduler/cron/send_skype.php on line 7*
> *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)*
>
it works when executed in command line but in cron its not working it
says *could
not connect to dbus* i think it needs some modification in the source but i
dont know much in C language.
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
thanks,
On Wed, Jun 18, 2008 at 7:10 PM, @4u <fd4u at vplace.de> wrote:
> Hi Arnel,
>
> please find attached a more complicated example how to work with
> "ext_dbus".
>
> 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.
>
> Beside that I hope the examples help. Please do not hesitate to ask for
> details or more information if needed.
>
> Best regards
> Tobias
>
> Arnel Labarda schrieb:
>
>> Hi,
>>
>> can you make another example how to connect to an application like skype
>> using dbus php binding..
>>
>> hope to hear from you asap, thanks,
>>
>> --
>> ----
>> Registered Linux User #399942
>> Ubuntu User #14134
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> dbus mailing list
>> dbus at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dbus
>>
>
> 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 (); ?>
>
--
----
Registered Linux User #399942
Ubuntu User #14134
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20080618/b830e9cb/attachment-0001.htm
More information about the dbus
mailing list