Joskevic Posted July 21, 2006 Share Posted July 21, 2006 HiI want to include a file that's in a higher directory, but I don't know how to link to that higher directory. In html its just ../somefile.inc, but in php it's different I think. Can someone help me please?Thanx a lot Quote Link to comment https://forums.phpfreaks.com/topic/15239-dumb-question-about-previous-directory-in-php/ Share on other sites More sharing options...
wildteen88 Posted July 21, 2006 Share Posted July 21, 2006 Its the same with php:include '../dir_name/filename.php';../ = up one higher directory./ = use the current working directory Quote Link to comment https://forums.phpfreaks.com/topic/15239-dumb-question-about-previous-directory-in-php/#findComment-61584 Share on other sites More sharing options...
Joskevic Posted July 21, 2006 Author Share Posted July 21, 2006 meanwhile I found out, stupid mistake from me Quote Link to comment https://forums.phpfreaks.com/topic/15239-dumb-question-about-previous-directory-in-php/#findComment-61590 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.