F
F
fayd552018-07-26 01:25:01
PHP
fayd55, 2018-07-26 01:25:01

How to run the application and set parameters via GET request?

O great Guru, tell the beginner. Put smstools to send sms via modem. I want to send SMS via GET request. Tried to solve it like this:

<?php 
$phones = $_GET['phones']; 
$mes = $_GET['mes']; 
$phones = escapeshellcmd($phones); 
$mes = escapeshellcmd($mes); 
$cmd = "smssend " . $phones . " '" . $mes . "'"; 
echo($cmd); 
exec($cmd); 
?>

but SMS does not come, I think that there are not enough rights to start.
Suggest a solution.
Thank you for your time.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-07-26
@Stalker_RED

i think i dont have permission to run
Is it not an option to look at error.log and check what exactly it is missing?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question