Welcome Guest, Not a member yet? Register   Sign In
Configure SSH Library
#3

(04-16-2015, 08:25 PM)CroNiX Wrote: Not sure what you mean, CI can use the CLI by executing "php -q /path/to/index.php controller method". Like "php -q /home/user/public_html/index.php blog view" to execute the blog controller/view method.
http://www.codeigniter.com/userguide2/general/cli.html

Just remember that $_SERVER variables are set by the webserver, so if you are using CLI $_SERVER won't be present since it doesn't use the webserver and just executes php from the CLI.  So if your app uses the $_SERVER superglobal, your app probably won't work via the CLI. Also things like sessions won't work using the CLI since there's no way to store and read cookies since there's no web browser involved.

Dear CroNix,

I want to access linux server via SSH. and execute the commands from  Web Application
Reply


Messages In This Thread
Configure SSH Library - by tushar.niras - 04-15-2015, 11:58 PM
RE: Configure SSH Library - by CroNiX - 04-16-2015, 08:25 PM
RE: Configure SSH Library - by tushar.niras - 05-26-2015, 11:47 PM
RE: Configure SSH Library - by tushar.niras - 07-08-2015, 10:40 PM
RE: Configure SSH Library - by tapan.thapa - 07-09-2015, 01:27 AM
RE: Configure SSH Library - by calcio - 05-28-2015, 07:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB