michaellunsford Posted January 31, 2007 Share Posted January 31, 2007 Plan: Why copy tinymce to every website's directory on the server when a symbolic link should do the same thing? So: [path_to_site]/tinymce -> /usr/local/tinymce Challenge: tinymce is supposed to inteligently open the right database and content for the calling site. I planned on accomplishing this by includeing a database file with a relative path "../db.php". But PHP thinks ../db.php is pointing to /usr/local/db.php (which doesn't exist anyway) instead of [path_to_site]/db.php. Is there a way to make PHP smarter? I'd really rather not hard-code full paths into php. Thanks! Link to comment https://forums.phpfreaks.com/topic/36535-symbolic-links-relative-paths-and-open_basedir-restriction/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.