FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


shell Script and PHP





vinx_18
Is it possible to run a shell script on PHP? How? If possible, can you show me an example.
icedrakon
try 2 books that i have on my site www.freewebs.com/icedrakon if that can help...
qscomputing
Not quite sure what you're asking here. If you want to run a shell script from in the middle of your PHP script, then it certainly is possible. You just run it like you would run any other program on the server.

If you want the output of the script to be echoed to the browser, use system():
http://www.php.net/manual/en/function.system.php
otherwise, use exec():
http://www.php.net/manual/en/function.exec.php

Just bear in mind that shell scripts are even less secure than PHP. HTH.
SlovenianBoy
yes, but mostly are this command disabled (shell_exec, exec, system) in php.ini because security issue (save_mode On, disable_function).
Related topics
Script php about gallery
File upload with PHP, Build an upload database for your site
How to enable the shell script on the hosting site ?
Shell script to automate rlogin
PHP Script- How can we install it
je veux integrer un script php dans mon themes.
Image Manipulation with PHP Script
CAN ANYONE SCRIPT PHP
Linux - simple shell script how to turn ECHO off ?
php script to set up ftp users on linux
Using free php script
Good morning from Brazil
[help] [tecg] script php para publicar en twitter
Learing Shell Script
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.