Jump to content

symbolic links, relative paths and open_basedir restriction


michaellunsford

Recommended Posts

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.