0

How can i create a URL that activates a script on my website.

something like: www.website.com/emergency/command123 or some code that activates the script.

I am building an emergency system. I am working with software that requieres a URL to activate a send command to the programm that activates triggers on a screen, showing exit signs etc.

I have searched the net but not found anything, or i am looking in the wrong direction. Or if there is a forum on this, please redirect me.

Thanks!!

Dstn
  • 1
  • 1
  • What do you want to do ? Call an url that will exec a bash ? – naurel Apr 29 '16 at 08:12
  • Create a CURL call from the backend, if you want to do a cross domain url call.. Use ajax if u are using same domain. Which language u r using in d backend? – sarath Apr 29 '16 at 08:13
  • Javascript code runs in the browser, on the client side - unless you are using server (code) side scripting. You should be able to easily achieve this by means of a php script. You can call the php script with appropriate authentication and then the script could literally do anything, including running an executable on the server. – R.W Apr 29 '16 at 08:28
  • In php you can use exec, shell_exec, system or passthru functions to execute commands. – jcubic Apr 29 '16 at 08:30
  • Thank you for the comments! Is there any tutorial about this availeble so i only ajust the url's or coding? – Dstn May 12 '16 at 09:50

0 Answers0