Jump to content
Stef's Coding Community
Sign in to follow this  
Cody

.php file won't open in browser?

Recommended Posts

Using XAMPP, I have placed the file in htdocs, but when trying to open there isn't a browser option. The default is my code editor, so it just returns the code instead of running the code and displaying the result.Any suggestions?

Share this post


Link to post
Share on other sites

HI I am having issues with this too.  I have created a URL with XAMPP fully installed and I cannot get it to work.  The page gives me "this site can not be reached."  In XAMPP the local server is enabled, I've hit mount to explore the root folder, and the services have all been started, but nothing seems to work like I have seen in videos online or in forums.  

I have tried a couple alternatives including MAMP as well as using terminal to use a local host.  (I am on a mac).  I've spent hours trying to figure out how to just test the php code.  I'm not sure what's going wrong.  Any suggestions or alternatives would be greatly appreciated.  It's hard to follow along with the php course without having this working. Thanks. 

-Mark

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...