0

in the following 2 images i just want to run a very simple php code (file:///C:/wamp/www/test/1.php)

using a running WampServer Version 3.0.6 64bit then the result when i try to execute this file in browser still the same code as i written php code

my browser

2 Answers2

1

Note that you are opening a file.In URL its opening file://... but when you want the localhost server to process the file, you need to open your file as http://localhost/test/1.php.

Hope it helps. All the best!

TutorialsBee
  • 101
  • 2
  • 5
0

Put this file into WWW folder of a WAMP-SERVER then try localhost/yourFileName.php

Zaid Bin Khalid
  • 748
  • 8
  • 25
  • You should not alter the WWW folder in WAMPServer. Add a subfolder as the OP has done! Or better still create a Virtual Host for each project in any folder anywhere on your disk – RiggsFolly Apr 28 '17 at 07:56
  • Yes of course, i forget to mention subfolder **localhost/subFolder/yourFileName.php** – Zaid Bin Khalid Apr 28 '17 at 08:42