CS267
Chris Pollett
Feb 10, 2021
Consider the file test.php:
hello world <?php echo "hello world"; ?> yeah!! <?php echo "okay";
If we ran this from the command line using:
php test.php
This would output:
hello world hello worldyeah!! okay
<?php function foo() { echo "hi"; } foo(); // prints hi
;error_reporting = E_ALL & ~E_NOTICEand uncomment it, restart Apache
You can see what PHP's configuration settings are in use by the following small program
<?php phpinfo();
$a = 53; $b = $a + 1;