Jump to content

[SOLVED] Need Help Fast Link issues


Danny620

Recommended Posts

i have a file that requires another file but the problem is that the file that requires another file is in a lower director e.g D:\STG\security_zone\login.php

and it needs to require a file in a upper directory called e.g D:\STG\settings\config.inc how would i get the log-in to require that file

 

this is what i got so far "require_once ('settings/config.inc.php'); " this is in the log-in file.

Link to comment
Share on other sites

I'm asumming D:\STG\ is your sites document root folder? In which you can use

require_once ($_SERVER['DOCUMENT_ROOT'].'/settings/config.inc.php');

 

Or you can use ../ to go up a level in the directory tree

require_once ('../settings/config.inc.php');

Link to comment
Share on other sites

thanks alot i will try that but i have another problem

 

An error occurred in script 'C:\xampp\htdocs\login.php' on line 6: include(includes/header.html) [function.include]: failed to open stream: Permission denied

Link to comment
Share on other sites

I'm asumming D:\STG\ is your sites document root folder? In which you can use

require_once ($_SERVER['DOCUMENT_ROOT'].'/settings/config.inc.php');

 

Or you can use ../ to go up a level in the directory tree

require_once ('../settings/config.inc.php');

 

 

thanks that work but i have a problem with the file called header.html

i get this An error occurred in script 'C:\xampp\htdocs\security_zone\login.php' on line 6: include(../includes/header.html) [function.include]: failed to open stream: Permission denied

 

 

Link to comment
Share on other sites

Green is the Bitlocker encryption feature if I remember correctly.

 

 

There's no way that was accidentally turned on lol...

 

 

And PHP should have still been able to get into it.  What ever works though.

lol do u know how to turn it off

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.