Home Man
Today's Posts

Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics.

Help to integrate Shell script with PHP

👤 Login to reply

Thread Tools Search this Thread
# 1  
Old 09-04-2017
Help to integrate Shell script with PHP

I have a shell script which takes user name and server name from the user and check the authentication type on that server like LDAP or VAS or local. It also provides various other info also such as owner of the ID and etc.
I need this script to work on the browser where user can directly input the values and get the output. For this I need to integrate my shell script with php or cgi.
Please help me in integrating it as I have not much idea in php.
# 2  
Old 02-25-2018
I think you can use exec PHP function to run your script.
Don't forget to make it executable using chmod +x ./script.sh
# 3  
Old 02-25-2018
echo $ouptut;

👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to integrate all the systemctl commands into a shell script to verify any daemon/agent service? Mannu2525 Shell Programming and Scripting 1 05-05-2018 02:12 AM
How to Integrate DropBox in PHP Web Application? AimyThomas Programming 1 09-11-2012 04:34 PM
how to convert a shell script to a php script for displaying next word after pattern match sb245 Shell Programming and Scripting 0 03-02-2011 01:42 AM
Again integrate files - bash script patrykxes Shell Programming and Scripting 2 01-22-2009 07:14 AM
Bash script - integrate two files patrykxes Shell Programming and Scripting 5 01-19-2009 04:51 AM
Accessing php script from shell script airon23bball Shell Programming and Scripting 3 10-14-2008 06:19 PM
Shell Script to Auto Run PHP Script elDeuce UNIX for Dummies Questions & Answers 4 08-28-2008 11:16 AM
Integrate PHP + Unix commands karthikn7974 UNIX and Linux Applications 1 04-28-2008 07:53 AM

All times are GMT -4. The time now is 05:11 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password