$ php -a
Interactive shell
php > $ad = 'hello';
php > echo '<script type="text/javascript">window.location.replace('.json_encode($ad).');</script>';
<script type="text/javascript">window.location.replace("hello");</script>
php >
PHP Fatal error: Uncaug
ht exception 'MongoConnectionException' with message 'Failed to connect to: :0:
php_network_getaddresses: getaddrinfo failed: Name or service not known' in /var
/lib/openshift/57538c9e7628e1825d000111/app-root/runtime/repo/n.php:4\nStack tra
ce:\n#0 /var/lib/openshift/57538c9e7628e1825d000111/app-root/runtime/repo/n.php(
4): MongoClient->__construct('mongodb://:')\n#1 {main}\n thrown in /var/lib/ope
nshift/57538c9e7628e1825d000111/app-root/runtime/repo/n.php on line 4
/usr/bin/tail: error reading `nginx-php7/logs/nginx': Is a directory
Сами хоть смотрите что присылаете....