mike12255 Posted July 23, 2009 Share Posted July 23, 2009 Im not sure put i think i've read something like this before. Im working on a website for a friend and the directory layout of the one im working on goes like this: public_html/forjosh/Admin/ wereas the real website will be on public_html/Admin im using the php part of the FCKediter so i was wondering if php a variable that took the name of the directory it was in so i would only have to set the variable once instead of twice when i put up the main website. Quote Link to comment https://forums.phpfreaks.com/topic/167123-solved-way-to-find-a-path/ Share on other sites More sharing options...
ignace Posted July 23, 2009 Share Posted July 23, 2009 config.php $config['fckeditor_directory'] = '/path/to/dir'; somepage.php require_once('config.php'); print $config['fckeditor_directory']; Quote Link to comment https://forums.phpfreaks.com/topic/167123-solved-way-to-find-a-path/#findComment-881176 Share on other sites More sharing options...
Andy-H Posted July 23, 2009 Share Posted July 23, 2009 getcwd Quote Link to comment https://forums.phpfreaks.com/topic/167123-solved-way-to-find-a-path/#findComment-881177 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.