Jay2391 Posted March 19, 2010 Share Posted March 19, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/195849-include-from-a-different-folder/ Share on other sites More sharing options...
oni-kun Posted March 19, 2010 Share Posted March 19, 2010 Assuming requests are allowed out of public folder: <?php include('../asset/123.php'); ?> Quote Link to comment https://forums.phpfreaks.com/topic/195849-include-from-a-different-folder/#findComment-1028765 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.