tags:

views:

1856

answers:

4

Hello,

Does anyone have any experience using php to send an sms with skype

I want the user off the website to use one the forms and give them a choice if they want to send an sms to do some request. First it will have to check for the availabillity off skype on the clients computer, if so it should send an sms. I already have the users mobile number in the database when he logs to the website.

Maybe, I have to use a combination off javascript and php?

I see that skype has a call.php script, but I cannot see to understand how it is supposed to be used. And also how to ajust it to send sms messages.

If anyone can give me some pointers, that would be helpfull.

If skype is to closed off, does anyone know a good sms service to implement in the website?

Regards, Richard

A: 

no, php is a server side scripting language, you cannot access your clients’ pcs with it. and i doubt it is possible to call skype from javascript …

knittl
those buttons also launch skype with jscript, I believe.// oh, you have to have an access key, I think.// I have read so much know, I diddn't find anything usefull yet.
Richard
jscript != javascript. and which buttons are you talking about?
knittl
those buttons on the skype site
Richard
I don't think there is a user friendly way to use skype for sms messages this way. I have to think about other ways then I think.
Richard
i bet they use some pseudo protocol handlers like skype:// or call:// —have a look at those
knittl
+1  A: 

If you're running PHP on Windows, you can use the COM wrapper for PHP to interface with Skype4COM. I haven't tested it, but following the examples from the Skype4COM documentation, this should work:

$skype = new COM("Skype4COM.Skype");
$skype->sendSms("+1234567890", "SMS text goes here");

However, this would use the instance of Skype running on your server. It is certainly impossible to interface with the instance of Skype running on your client's machine using client-side JavaScript. Some basic interfacing can be done with MSIE and VBScript, but I think that this way the functionality would be very limited as well, because it would be very insecure if it wasn't limited.

Ignas R
thanks, that probably answerd my question.I cannot be interactive with the skypeclientI don't know how to run skype in an shared host environment, but that would not be a good idea either. because off all logons to skype. Not very user friendly. I have to look for some sms gateway then. I don't know any?
Richard
A: 

Please send me Skype SMS sender on [email protected] It"s working?

Thanks

Grega
Is this spam?..
Felix Kling
A: 

TRUE..However, this would use the instance of Skype running on your server.

NOT TRUE..It is certainly impossible to interface with the instance of Skype running on your client's machine using client-side JavaScript

^ The client side javascript CAN make server calls via javascript ajax, hell you can even make server side calls WITHOUT using javascript by embedding the call in an image tag!

ie. img src="myskype_server.com/announcestatus.php?session=23eedwrwe23323&status=viewing mortgage documents"

announcestatus.php // connect to server actually running skype //do a series of security checks // connect to the actual windows pc running skype (It's host name can be fixed by using a service like www.dyndns.com) //

If anybody is particularly interested, I can package up the wobbly code I used to implement this and post it.

steve