FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


symbolic link





dwikristianto
hi all,

i have couple sites that will be hosted in here.

problem is,
those sites using a library functions that is gathered in a single directory, the name is "rootlibs"

how can i create a symbolic link in a directory that has name "rootlibs" too ?

by creating a symbolic link it's easier in programming and more effective in disk space used by all sites.
if u grant me a shell access (temporary times), i can create the the symbolic link by my self.

is there any way i can create this symbolic link or just copying this directory to all sites is the solutions ?

fyi,
i'm on server2 with directadmin as cpanel.
directadmin username: dwikrist

thanks,
kv
You can use php to create symbolic link. You don't need shell access.

Here is the code.

Code:

<?

symlink('/home/username/public_html/rootlibs', '/home/username/public_html/myapp/rootlibs');

?>
dwikristianto
OK,
thanks kv
dwikristianto
hahaha symlink is a disabled functions in here.

i've tried it and resulting Warning: symlink() has been disabled for security reasons in
dwikristianto
it seem that nobody care with my problem.. Sad
Bondings
You should normally be able to access them from all your websites without a symlink. Simply use an include to that directory like:
Code:
include("../../../file.php");

Assuming the file is in the public_html and the libraries in your root. One level further and you need another "../".
dwikristianto
OK bondings thanks.

i'll try your suggestion. i will let u know if i found another.
Related topics
Link issue ok lookie here,
Broken link on main page
automate your link exchange - Set it and FORGET it
HTML Link
redirecting domain to directory & directadmin - how?
UBUNTU HELP!!
Unknown problem - file not found
404 Not Found - Help Me!!!
Putty
Problems with WP-Cache, wordpress & SSH
Symbolic Links...... Need HELP
php hosting
Shortcuts in PHP/Directadmin
Java Servlet Help needed
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.