Winston Posted November 17, 2021 Share Posted November 17, 2021 I put files on a virtual hard disk, but when I try to run it from the browser, the PHP code comes up as text, and does not run the commands. What do I do to turn "O:\" (or any other drive) into a unshared virtual server? Or another fix, how do I run PHP on Chrome for Windows 10 period? Link to comment Share on other sites More sharing options...
Ingolme Posted November 17, 2021 Share Posted November 17, 2021 For easy development, I used XAMPP (server software) to test PHP on my computer. Here's where you can download it: https://www.apachefriends.org/index.html Link to comment Share on other sites More sharing options...
Winston Posted November 17, 2021 Author Share Posted November 17, 2021 How do I open the page? I don't see "PHP" when it runs... Ingolme I noticed your user picture looks almost like Tails from Sonic The Hedgehog, just have to ask; Is it? Link to comment Share on other sites More sharing options...
Winston Posted November 17, 2021 Author Share Posted November 17, 2021 I tried this link I found in Help, to get instructions, but is unavailable. How do you run a page? Link to comment Share on other sites More sharing options...
Ingolme Posted November 17, 2021 Share Posted November 17, 2021 Once the software is installed and running on your computer, you will be able to run PHP files from the htdocs/ folder of your XAMPP installation directory by typing http://localhost/ in your browser. Link to comment Share on other sites More sharing options...
Winston Posted November 18, 2021 Author Share Posted November 18, 2021 I got this error message; This site can’t be reached localhost refused to connect. Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED Link to comment Share on other sites More sharing options...
Ingolme Posted November 18, 2021 Share Posted November 18, 2021 That means that XAMPP is not running. First, you should open XAMPP. If you have installed it correctly, there should be an icon on your desktop like this: That should open the XAMPP configuration window. If it doesn't, click on the XAMPP icon in the windows task bar: This is what the XAMPP configuration window looks like: Click on the "Start" button in the row that says "Apache." Once you've done that, PHP files in the htdocs folder will be accessible from the //localhost/ domain in your browser. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now