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. 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']; 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 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
Archived
This topic is now archived and is closed to further replies.