In Ubuntu system, first check for the PHP. For checking open the terminal, using command
**Ctrl +Alt +T**
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.
?>
open the file in the command line, by using below command:
**php-cgi -f /var/www/test/filename.php file_name=qwer.csv**
Output on the Command Line is like:
**hi world<pre>Array
(
[file_name] => file.csv
)**
0 Comment(s)