I have done a website for a customer that send SMS to members via their SMS provider.
They suppliesd this asp code.
I have no idea on asp as I have been using php for the last 2 years.
any one that can help to convert this to php or who knows where i can find SMS codes in php will be appreciated.
file Sendsms-Exapmle1.asp
<!-- #include file=smsLib.asp -->
<%
'SMS Library Example from FIDO Media - www.fido.co.za
Const BulkSMSUsername = "YourUsernameHere"
Const BulkSMSPassword = "YourPasswordHere"
Response.Write SendSMS("Fido Media Systems - www.fido.co.za - info@fido.co.za","27824143129")
%>
===========================
File smsLib.asp
<%
'SMS Library from FIDO Media - www.fido.co.za
function SendSMS(Message,Number)
on error resume next
Dim objXMLHTTP, xml
'If your server complains about "Microsoft.XMLHTTP",
'comment that line out and uncomment the following line.
'Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "GET", "http://bulksms.vsms.net:7512/eapi/1.0/send_sms.mc?username="& BulkSMSUsername &"&password="& BulkSMSPassword &"&message="& server.URLEncode(message) &"&msisdn="& number, False
xml.Send
SendSMS = xml.responseText
Set xml = Nothing
if err.number <> 0 then
if err.number = "-2146697211" then
SendSMS = "99|You're probably not connected to the Internet|ASP"
else
SendSMS = err.number & "|" & err.Description & "|ASP"
end if
end if
on error goto 0
end function
%>
============================