over 9 years ago
In Ubuntu system, first check for the PHP. For checking open the terminal, using command
and type whereis php
If PHP present in system, above command display the path of PHP
Make a PHP file from where you can access it:
- <?php
- print "hi world";
- echo"<pre>";print_r($_GET);echo"</pre>";
- echo $File = $_GET['file_name'];
- // use the file name and do whatever you want to do with it.
- ?>
<?php print "hi world"; echo"<pre>";print_r($_GET);echo"</pre>"; echo $File = $_GET['file_name']; // use the file name and do whatever you want to do with it. ?>
open the file in the command line, by using below command:
Output on the Command Line is like:
0 Comment(s)