NowSms php sample code path ?

NowSms php sample code path ? SearchSearch
Author Message
Fahad Ahmed
New member
Username: Fahad

Post Number: 3
Registered: 06-2010
Posted on Wednesday, June 02, 2010 - 10:34 am:   

hi all

I am trying to use now sms middle ware tool
and I connected GSM modem with my PC.

Please tell me what will be my next step
and how can I test Php sample code and where I put that file ...?

Thanking in anticipation
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2188
Registered: 08-2008
Posted on Wednesday, June 02, 2010 - 01:58 pm:   

Can you access the NowSMS web interface with a web browser? And successfully send an SMS message via the web interface?

Make sure that you can do this before moving on to PHP.

The PHP code would go wherever you run PHP script from. Usually it is on a web server.

--
Des
NowSMS Support
Fahad Ahmed
New member
Username: Fahad

Post Number: 1
Registered: 06-2010
Posted on Wednesday, June 02, 2010 - 06:01 am:   

how can i run nowsms sample code ?
and where i put that sample file?
Fahad Ahmed
New member
Username: Fahad

Post Number: 2
Registered: 06-2010
Posted on Wednesday, June 02, 2010 - 09:16 am:   

hi des
Please help me out

Fatal error: Call to undefined function SendSMS() in C:\xampp\htdocs\index.php on line 104


why this message appear on line 104 ,code below

$x = SendSMS("127.0.0.1", 8800, "username", "password", "+44999999999", "Test Message");
echo $x;
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2189
Registered: 08-2008
Posted on Wednesday, June 02, 2010 - 02:03 pm:   

The code for the SendSMS function must be included in the same file as your PHP script.

Or, you can use the PHP include function to include a separate PHP file that contains the function.

--
Des
NowSMS Support
Fahad Ahmed
New member
Username: Fahad

Post Number: 4
Registered: 06-2010
Posted on Thursday, June 03, 2010 - 07:18 am:   

hi des

thanks for your response
Please guide me further.

I am using NowSMS web interface when I try to send message I got a message "Message Submitted" What does it mean while the message was not received.
My SIM car perfectly working in my phone
and GSM modem also tested

Thanking in anticipation
Fahad Ahmed
New member
Username: Fahad

Post Number: 5
Registered: 06-2010
Posted on Thursday, June 03, 2010 - 07:24 am:   

My SIM card perfectly working in my phone
Fahad Ahmed
New member
Username: Fahad

Post Number: 6
Registered: 06-2010
Posted on Thursday, June 03, 2010 - 07:52 am:   

hi des

thanks

NowSms web interface Successfully working :-)