<?php
try {
$pdo = new PDO("mysql:host=localhost;dbname=test", 'root', 'root');
var_dump($pdo);
} catch (PDOException $e) {
echo $e->getMessage();
}
echo "<hr/>";
echo 'this is a test<hr/>';
try {
$splObj = new SplFileObject('test.txt', 'r');
echo 'read File';
} catch (Exception $e) {
echo $e->getMessage();
}
echo "<hr/>";
echo "hello world";
?>
Paste_Image.png