Sending an SMS via PHP on a distant web site.

Sending an SMS via PHP on a distant web site. SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through October 31, 2007 » Sending an SMS via PHP on a distant web site. « Previous || Next »
Author Message
Simon Jones
New member
Username: Elsrj

Post Number: 9
Registered: 04-2007
Posted on Tuesday, July 24, 2007 - 07:42 pm:   

We want to develop a simple system. It takes in MMS and returns SMS.
We got the MMS in via the 2-part PHP code on this site. Great. When I send an MMS it is uploaded to the website hunky dory.

Now we want to send back an SMS message. I took the code you made available and put it on our website and entered the IP address of our development machine (which does NOT run the website). I keep getting the following message.

Warning: fsockopen() [function.fsockopen]: unable to connect to 87.80.42.85:81 in d:\websites\secondemotion.com\wwwroot\returnsms.php on line 5

Fatal error: Maximum execution time of 30 seconds exceeded in d:\websites\secondemotion.com\wwwroot\returnsms.php on line 5

I thought it might be a port error - but Activate MMSC page has port 81 as the http port

I tried changing windows firewall to accept nowsms, I even switched the firewall off.

I am running out of ideas now - all I want to do is send a standard SMS in response to receiving an MMS - any suggestion as to why I can not send an SMS back?
application/octet-streammisbehaving SMS send code in PHP
Copy of returnsms.php (0.8 k)

Login Login / Register Logout Logout Search Last 30 Days Topics Topics