Answer the question
In order to leave comments, you need to log in
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);
?>
Answer the question
In order to leave comments, you need to log in
i think i dont have permission to runIs 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 questionAsk a Question
731 491 924 answers to any question