Jump to content

CLI mode required - ERROR


kingsauces

Recommended Posts

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/277803-cli-mode-required-error/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.