LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   i/o linux (https://www.linuxquestions.org/questions/linux-newbie-8/i-o-linux-875535/)

athrin 04-17-2011 08:18 PM

i/o linux
 
hello,

in my php page they ask the user to enter some input example like year. i want that input to be transfer into my .sh file and will show its output. how to make .sh file receive data from php and php sent data to .sh file

regards,
Athrin

TB0ne 04-17-2011 09:03 PM

Quote:

Originally Posted by athrin (Post 4327497)
hello,
in my php page they ask the user to enter some input example like year. i want that input to be transfer into my .sh file and will show its output. how to send the data inside php into .sh file?

Based on your other threads, you've been pointed in the right direction several times, but don't appear to want to do the research on your own to move forward.

A very basic Google search on "php system calls" yields plenty of results. First hit is from the PHP.net manual site:
http://php.net/manual/en/function.system.php

So write your bash script to accept a command line argument. Call it via PHP.


All times are GMT -5. The time now is 01:28 AM.