SMS AND PHP

SMS AND PHP SearchSearch
Author Message
Mats Hedberg
New member
Username: Stampe

Post Number: 1
Registered: 02-2004
Posted on Monday, February 02, 2004 - 04:29 pm:   

Hi!
I wonder where should i tell the sms-server to run my php script.Is it in the .ini file like
http://www.test.com/get_sms.php SMS to John D: @@SMS@@ No

By
frankie owen
Unregistered guest
Posted on Monday, February 02, 2004 - 04:59 pm:   

i have just bought a sony ericsson t68i phone there is no write new on sms menu can anyone help
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1797
Registered: 10-2002
Posted on Monday, February 02, 2004 - 09:11 pm:   


quote:

I wonder where should i tell the sms-server to run my php script.Is it in the .ini file like http://www.test.com/get_sms.php SMS to John D: @@SMS@@ No




Hi Mats,

This gets configured on the "2-way" page of the NowSMS configuration dialog. For more information, see:

http://www.nowsms.com/documentation/ProductDocumentation/2_way_sms_support.htm

-bn

Side note to Frankie on his T68i with no "Write SMS" on the menu. Either take it back to where you bought it from, or it is likely that you'll
Mats Hedberg
New member
Username: Stampe

Post Number: 2
Registered: 02-2004
Posted on Monday, February 02, 2004 - 10:43 pm:   

Thank you for the quick answer, i shall read the link, one more question if i want to split it to variables like $amount, $adress, $area or any outher variables , so I can insert it into selected fields in a database how do i do that?

By
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1836
Registered: 10-2002
Posted on Wednesday, February 11, 2004 - 09:11 pm:   

Hi Mats,

Sorry for the extra long delay getting back to you.

Unfortunately, I don't understand. You tell us what URL that you want to run, and we parse the message, and then your URL can contain place holders where we substitute values parsed from the message:

@@SENDER@@The phone number of the sender of the SMS Message.
@@SMSPREFIX@@The first word of the SMS message.
@@SMS@@The content of the SMS message, except the first word of the message.
@@FULLSMS@@The complete content of the SMS message.
@@RECIP@@If available, the phone number that is intended to receive (or did receive, if the message was received via a GSM modem connection) this message.


Any further parsing would have to be done by your script. I am not sure what values you are expecting to be present for $amount, $address and $area ... or where those values would come from.