Display received sms on webpage - php


 
Thread Tools Search this Thread
Top Forums Web Development Display received sms on webpage - php
# 1  
Old 11-13-2015
Display received sms on webpage - php

Hello,
Scenario: Send sms from putty and display it on webpage.

I have rented an short message service from a company and set callback url to my vps. PHP is installed in my vps .

my mobile phone is: ********85**
receipent mobile phone is: 49*********

callback url is redirected to http://my_vps_ip/sms/ at customer panel dashboard and succesfully accepted by their system.


When I enter below code in vps terminal,

Code:
curl 'https://rest.nexmo.com/sms/json' -d api_key=******** -dapi_secret=******** -d to=49********* --data-urlencode "text=Hello There!." -d from=********85**

I receive a new log line in apache.log and it confirms that sms received from the receiver's end but I am unable to play it on a webpage.
Could you please lead me how to do this?

apache.log
Code:
[13/Nov/2015:11:04:28 +0100] "GET /sms/?msisdn=********85**&to=49*********&messageId=0200000088D018F5&text=Hello There!.&type=text&keyword=HELLO&message-timestamp=2015-11-13+10%3A04%3A28 HTTP/1.1" 200 907 "-" "Nexmo/MessagingHUB/v1.0"


Thanks in advance
Boris
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Running php index.php as shell in webpage

so i have a bit of a unique situation. i have an encrypted index.php file that that can't be run the normal way that a web browser would run it. if it is run the normal way, the php script will show only gibberish on the web browser, instead of the actual php code. when run from the command... (8 Replies)
Discussion started by: SkySmart
8 Replies

2. Shell Programming and Scripting

Executing Shell Script from PHP Webpage

Hello , I am trying to execute a small shell script from a PHP Webpage. Below is the shell script : 1.sh $ cat /home/oracle/rahul/1.sh #!/bin/ksh echo "`date` : Report generation in progress" > /home/oracle/rahul/report.txt echo "Run successfully script"; Below is the PHP... (1 Reply)
Discussion started by: rahul2662
1 Replies

3. UNIX for Dummies Questions & Answers

How to submit form on an php webpage from command line?

Hello, i have page domain.com/form.php the form fields on form.php are named: name=ipaddress name=port and submit button is named: submit i want to ask how the linux command will look like to submit the form filled with: ipaddress: 127.0.0.1 port: 80 I tried various curl and... (5 Replies)
Discussion started by: postcd
5 Replies

4. Solaris

Webpage Display

Hi, I need to display the output of a script in web page. Can anyone suggest me how to do that? (5 Replies)
Discussion started by: Arasu
5 Replies

5. Linux

Run PHP script when new email received

I have been looking around for a solution to this, i have been developing for a wile though am very new to CGI, PHP and a lot of the web based tech. I have a web site hosted with a cPanel web host. I am looking to have a script(prefer PHP) to run everytime i get a new email to help@xxx.com.... (16 Replies)
Discussion started by: iKris
16 Replies

6. Web Development

[php] webpage with login & mysql-db

Hi all, What I was looking for before was a multi-user password manager, web-based! The offer of free or cheap tools of this kind is very pover. Or they are too complex (or too expensive) I'm not a web programmer but I now decided to set up a (php) website with login and based on this login... (1 Reply)
Discussion started by: thibautp
1 Replies

7. Web Development

php script + not displaying webpage

Hi guys Im in the process of designing a website for my company which does the following 1) Daily execution a perl script. The perl script's output is diverted to a .html file. 2) The .html file generated from 1) sets up a centralised webpage showing options as radio buttons (the radio... (1 Reply)
Discussion started by: JamesGoh
1 Replies

8. Shell Programming and Scripting

Calling an Expect script from a Webpage using PHP

I have a webpage that is in HTML and PHP. In PHP I have tried using exec, system, shell_exec and passthru functions to call an Expect Script file (temp.exp). This Expect file spawns a telnet session that uses "expect/send" commands to retrieve information from an environmental unit (not a normal... (0 Replies)
Discussion started by: CCUSmith
0 Replies

9. Shell Programming and Scripting

PHP:display by date

Can php + MySQL display stuff out of table by its date.? e.g. In a table have id, date, title, details can php display the info three weeks before the date in the db? What fuction would i use? (3 Replies)
Discussion started by: perleo
3 Replies
Login or Register to Ask a Question