The php file is parsed fine in command line and output the desired result, but when using the browser nothing shows not even an error. looked at the php error log file, here is the error when page loads in the browser:
PHP Fatal error: Class 'CouchbaseCluster' not found in /var/www/public/poles.php on line 12
Yes, keep in mind that CLI and Web server are two different ways to access PHP and can be configured differently. One example would be that two different php.ini’s are used or even different PHP versions installed.