PHP is very strict in semicolons appearing in the middle. You forgot a semicolon ;
:
require 'test.php';
// ---------------^
echo "67890";
Always make sure to display errors by enabling the display_errors
in the php.ini
or by using the following piece of code in the top of the pahe:
<?php
ini_set('display_errors', 1);
It is surprising that it didn’t alert you, even though you have set to display all the errors! Crazy!
solved Why am I getting a blank page when requiring a simple file? [closed]