Jump to content

php-code only works under htdocs and not under subfolder?


Kriske68

Recommended Posts

I'm quite new to php, as I started using it only a few weeks ago.

 

I've installed xampp on my pc, and used it to make php-files for a few weeks now. Until recently, a php-file in a subfolder of htdocs worked fine. But for no apparent reason (to me) the php-files in my subdirectories didn't show correctly in my browser any longer, only the ones that were placed directly under my htdocs-folder.

 

I tested this by making a simple php-file, which does nothing more then display a line of text. In my htdocs-folder it worked correctly. When I copied that file to a subfolder of htdocs, it no longer worked.

 

Anyone have a clue?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.