-4

am 3 days trying to run a test script, with no success. follows picture of the result when I run in chrone and edge enter image description here enter image description here

please help me

  • 2
    You can't execute PHP from the browser, unlike HTML, you need to install a webserver on the pc, like [XAMPP](https://www.apachefriends.org/it/index.html). – salvatore Jan 30 '19 at 23:19
  • You need to install PHP for windows to be able to get this to run. PHP is run serverside https://learn.microsoft.com/en-us/iis/application-frameworks/scenario-build-a-php-website-on-iis/configuring-step-1-install-iis-and-php https://www.youtube.com/watch?v=iW0B9NTId2g – Marcello B. Jan 30 '19 at 23:20
  • 1
    Possible duplicate of https://stackoverflow.com/questions/5121495/php-code-is-not-being-executed-instead-code-shows-on-the-page – Jarzon Jan 30 '19 at 23:23
  • @salvatore Well...he has a webserver... `EasyPHP` - but he is not accessing the files via the webserver but by direct file:/// path – Xatenev Jan 30 '19 at 23:54

1 Answers1

0

You try to open your php file from the folder. You need to do it from the server. The address in your browser should be : http://127.0.0.1/phpinfo.php

Peter Estiven
  • 414
  • 1
  • 7
  • 16