search

Home  >  Q&A  >  body text

Run a php file using Visual Studio Code.

<p>I can't run my php file, can anyone help me? It was created using Visual Studio Code with the extension PHP intelephants. <br /><br />I created the code and entered the URL 'http://localhost:80/phpa1/index.php' in Google Chrome. But the result shows 'Not Found'. </p><p><br /></p>
P粉709307865P粉709307865529 days ago680

reply all(2)I'll reply

  • P粉322106755

    P粉3221067552023-08-01 16:51:04

    In order to run PHP files, you need to have a server. This is because PHP is a server-side language that requires a server to interpret and execute the code. Without a server, your PHP code won't run properly. Therefore, before trying to run any PHP files, make sure you have a server set up.

    reply
    0
  • echo X

    Who said we need a server? Not working on local computer?

    echo X · 2023-08-07 10:30:56
  • Cancelreply