kingsauces Posted May 8, 2013 Share Posted May 8, 2013 I have a script and it is sample code that has been given to me by a real estate board in order to access the database of info. I have loaded the sample code into a web page and when I run it, I get this message on the screen. I have no idea what CLI is or how to implement its mode. Any help would be great ... Thanks... Adam Quote Link to comment https://forums.phpfreaks.com/topic/277803-cli-mode-required-error/ Share on other sites More sharing options...
requinix Posted May 8, 2013 Share Posted May 8, 2013 CLI is "command-line interface". It's Windows' Command Prompt and *nix's terminal/console, and SSH gives you remote access to a CLI. You may need to find yourself a quick primer on them before you continue. Quote Link to comment https://forums.phpfreaks.com/topic/277803-cli-mode-required-error/#findComment-1429135 Share on other sites More sharing options...
kingsauces Posted May 8, 2013 Author Share Posted May 8, 2013 I dont even know where to get started,,, lol, why would the php script be looking for a CLI mode when it is running on a client side screen?? wouldnt CLI be just for the admin? Any idea on where i could get a good primer course?? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/277803-cli-mode-required-error/#findComment-1429154 Share on other sites More sharing options...
kicken Posted May 8, 2013 Share Posted May 8, 2013 Without knowing more details, I would venture to guess that the script you have is intended to be run via the CLI version of PHP, not as a web page. There is probably a check in the code to determine if you are running the script via CLI or not and if not, it is showing that error and refusing to run. Quote Link to comment https://forums.phpfreaks.com/topic/277803-cli-mode-required-error/#findComment-1429162 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.