Are you sure that the script you are trying to run has a
.php extension.
If a file containing PHP has any other extension it is not passed by Apache to the PHP interpreter.
So for example if you are trying to run `xxx.html` any PHP in there will show like part of your web page
Also is you are trying to launch your php script using filemanager and clicking on the xxx.php file, it also will not interpret the PHP as doing this does not send the script to apache to launch and of course if Apache does not see the script it cannot spot the `<?php` tag and pass code to PHP for interpretation.
If you are doing this you will see something like `file://path/to/file.php` so if you see the `file://` you are doing it wrong
ALWAYS launch websites from the address bar of your browser. So like `[
localhost]'
Of better still read
The need for Virtual Hosts and create yourself an Apache Virtual Host for each end EVERY one of your projects
---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.1 32bit & 64bit) Aestan Tray Menu 3.2.5.0
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>Read The Manuals Apache --
MySQL --
PHP --
phpMyAdminGet your Apache/MySQL/mariaDB/PHP ADDONs here from the
WAMPServer alternate Repo-X-X-X-
Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-
Edited 1 time(s). Last edit at 05/09/2018 04:06PM by RiggsFolly.