0

I have PHP script (on a web site) with code:

<?php
echo mt_rand();
?>

I need to open this link in CMD, receive nuber and echo it. How can i do this? Please, give me example...

GuitarFan
  • 27
  • 4
  • Are you trying to retrieve the data from a http request or from a local script execution? – MC ND Oct 24 '14 at 15:38
  • No, i don't know how to do it. I need the example. – GuitarFan Oct 24 '14 at 15:39
  • Nice. Do you need an example of how to call a page in a web server using http request and retrieve the data from cmd? or, do you need a example of how to call a local php script inside a folder and retrieve the output from cmd? or do you have a different scenario? – MC ND Oct 24 '14 at 15:42
  • See [here](http://stackoverflow.com/a/23512143/2861476) – MC ND Oct 24 '14 at 15:44
  • Do you need an example of how to call a page in a web server using http request and retrieve the data from cmd? -Yes – GuitarFan Oct 24 '14 at 15:44

0 Answers0