when executing this command in linux wheezy throug SSH, it works fine;
pi@raspberry /usr/bin $ ./send -u 2 -i 0546845 -f
But how can i put this in for example test.php page (from var/www/test.php) so i can run this in a webpage?
Tried several things, but need some help getting into the right direction.
Many thanks.
使用system
功能 。
string system ( string $command [, int &$return_var ] )
I don't know how to reply to an "answer".. hehe..
I think you can simply do this:
system('/usr/bin $ ./send -u 2 -i 0546845 -f');
add that to your php script.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.