0

I have the following code:

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

$m = new MongoClient();
$db = $m->admin;
?>

The code is displaying

admin; ?>

on the page. Any additional code I add before the end PHP tag is also displayed.

Am I missing a glaringly obvious syntax error?

ryansin
  • 1,654
  • 2
  • 21
  • 43

0 Answers0