•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 426,567 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,648 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1111 | Replies: 3
![]() |
•
•
Join Date: Aug 2005
Posts: 80
Reputation:
Rep Power: 4
Solved Threads: 2
•
•
•
•
Originally Posted by namit
I have writen a scipts in linux its called user.sh
i wounder how do i run it in a php script
I can if i just run it in command line ./user.sh it works perfect
but can i add it into my code.
thanks
You sure can do that. Assuming that user.sh is in the same directory as the php page, just use the backtick operator:
[PHP]<?php
`./user.sh`;
?>[/PHP]
If user.sh isn't in the same directory, try using the full path name to user.sh instead of ./user.sh. Good luck.
-Fredric
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
apple bbc cellphone choose competition computer core debian dell desktop development enterprise fedora games gentoo gpl hardware ibm install kernel laptop linux microsoft mobile news novell open open source open-source openoffice operating os php preinstall red hat rhel security server source spam sun suse switching system telephony ubuntu unix vista web windows
- What's better? Windows 2000 Server or Linux Server? (Windows Servers and IIS)
- Bulk E-mail (Geeks' Lounge)
- Want to learn LINUX..some help required (Getting Started and Choosing a Distro)
- Running Automatic SFTP From Windows to Linux (Windows NT / 2000 / XP / 2003)
- Need help on what linux to get. (Getting Started and Choosing a Distro)
Other Threads in the PHP Forum
- Previous Thread: Jumping into Php
- Next Thread: Shrink images


Linear Mode