Jump to content

Include from a different folder


Jay2391

Recommended Posts

So in my local server i have a folder call

 

Assets and Public

 

In the assets folder I have a PHP file call "123.php"

I am trying to get my "index.php" file that is located in the public folder to include that file.

 

the issue is that all do they are on the same server folder there not in the same folder

 

Host    ->    asset  ->  123.php

          ->    public  ->  index.php

 

 

how do I get that done.

 

Thanks...J 

 

PS: First time I use PHP in 4 years can believe how quickly i can for get things

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/195849-include-from-a-different-folder/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.