bruckerrlb Posted January 26, 2008 Share Posted January 26, 2008 Hello, I have a simple question, but it's been driving me crazy. I am trying to use the php include statement to go down one folder in my directory. I've tried both of the following codes, but I always get errors <?php include(".../toolbar.php"); ?> Or <?php include('.../toolbar.php'); ?> Or <?php include(".../admin/toolbar.php"); ?> Or <?php include('.../admin/toolbar.php'); ?> Basically I've got a subfolder in the admin directory and I'm trying to get to my toolbar in the admin folder, which is one folder down, but I can't seem to get in there with php include, does anyone know what "m doing wrong? Quote Link to comment https://forums.phpfreaks.com/topic/87910-solved-php-include/ Share on other sites More sharing options...
Aureole Posted January 26, 2008 Share Posted January 26, 2008 Try two dots, I think that will work but I'm not entirely sure. Quote Link to comment https://forums.phpfreaks.com/topic/87910-solved-php-include/#findComment-449760 Share on other sites More sharing options...
bruckerrlb Posted January 26, 2008 Author Share Posted January 26, 2008 Awesome, that worked, thank you so much, I was reading the php website, and all I could find was a way to get to the root folder, but I was just trying to move down one, that works, thanks again! Quote Link to comment https://forums.phpfreaks.com/topic/87910-solved-php-include/#findComment-449762 Share on other sites More sharing options...
Aureole Posted January 26, 2008 Share Posted January 26, 2008 Make sure you click "Topic Solved". Quote Link to comment https://forums.phpfreaks.com/topic/87910-solved-php-include/#findComment-449764 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.