I'm just starting to learn php programing and I'm having this frustrating problem that does not let me to go on.
I just set up LAMP server on my linux mint with default settings on localhost. Problem is that when I create .php file in var/www browser can not find it and shows 404 not found message. When I created info file to view php info everything worked fine,
<?php info(); ?>
when creating new random php file in same location then the error comes up.
I lost whole day looking for an answer but not luck.
You are using incorrect function.
<?php phpinfo(); ?>