Sending MMS using php scripts | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through February 20, 2004 ⬆ |
◄ ► |
Author | Message | |||
Anonymous |
Hi, I have used NowSMS to send out MMS using web interface successfully. However when I try using php script (given here long ago) only the text portion is received but not the part of picture. Is there anything wrong with the content type? $file1="C:\AppServ\www\Myworks\templates\KMB_1.jpg"; $contenttype1 = "image/jpeg"; $fa = @file($file1); $xf ="Content-Type: ".$contenttype1."\r\n\r\n".implode("",$fa); $data["MMSFile\"; filename=\"$file1"] = $xf; can anyone help me? | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 1848 Registered: 10-2002 |
I can try to help. You're referring to the sendmms.php script at the following link: http://support.nowsms.com/discus/messages/1/1113.html I just tried it again, and it works fine. But I noticed something. Our discussion board does not like a double backslash "\\" (I had to take special care to get it to appear there). So the script that appears in the link shows a single backslash in the path name, but if you download the script attachment, you'll see $file1="C:\\TEMP\\logo.gif"; instead of $file1="C:\TEMP\logo.gif"; Might that be the problem that you are experiencing? If that isn't the problem, then put the NowSMS components in debug mode, and let's take a look at the debug logs, and that should give us a better idea of what is occuring. Edit SMSGW.INI, and under the [SMSGW] section header, add Debug=Yes. Edit MMSC.INI, and under the [MMSC] secton header, add Debug=Yes. Then restart the NowSMS services. Run your PHP script, then send me a ZIP with your SMSDEBUG.LOG and MMSCDEBUG.LOG files. Either e-mail to nowsms@now.co.uk, or post in response here. -bn |