Guest
2008-04-28T17:28:44Z
Hi there

I've got forwarding set up to a php script which will be saving the content of the incoming messages to the database.

The 'text', 'from', 'msgid' comes through fine, but the usual global PHP variables are not returning anything to tell me where the script has been accessed from.

Without it, basically anyone who finds the URL can bombard it with messages to save.

Is there any way I can confirm that the script has been accessed by Intelli SMS?

Thanks in advance
tasha
Support
2008-04-28T17:40:18Z
You can add your own parameters to the forwarding URL:

e.g. http://myserver/receivesms.php?username=fd54gr876je&password=tf54sj76fd22

You can add any parameters you like (may not be advisable to use your username/password of the message account on our system).

In the example above, the username and password parameters will be available as additional parameter to the standard 'text', 'from', 'msgid' parameters. Note: the standard parameter come in a POST parameters, the extra parameters come in as GET parameters.