Symlinks

liunx

Guest
I am wondering if its possible to create symlinks. For example, i have a subdomain called "admin" for my host, but would like it to be able to access the same library files as the main website in the root folder. <br /><br />The only way I would know how to do this is to create a symlink within the subdomain directory (ie libraries) that links to a directory within the main www root folder also called libraries. This way the following would evaluate to the same directory on the server:<br /><br />$_SERVER['DOCUMENT_ROOT'] . '/libraries/' <br /><br />regardless of whether I'm calling that from within my subdomain or from the main www location.<br /><br />Any ideas from the guru's out there?<!--content-->
Hi.<br /><br />While it is not possible for a regular user to create symlinks, if you really need them you can submit a help desk ticket and ask the techs to create it for you <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Or you could put the libraries folder outside of your web space (same level as public_html) and link with the full path to the libraries.<!--content-->
<!--quoteo(post=86123:date=Aug 30 2004, 06:31 AM:name=borfast)--><div class='quotetop'>QUOTE(borfast @ Aug 30 2004, 06:31 AM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=86123"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->Hi.<br /><br />While it is not possible for a regular user to create symlinks, if you really need them you can submit a help desk ticket and ask the techs to create it for you <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Is this still the case? Or can regular dudes create symlinks now?<br /><br />Thanks.<br /><br />Seth.<!--content-->
In Lazarus I use<br /><br />$include_path = dirname(__FILE__);<br /><br />Which gives me the directory path of the file in question. Couldn't you use something similar?<!--content-->
<!--quoteo(post=208469:date=Jun 27 2007, 08:18 PM:name=carbonize)--><div class='quotetop'>QUOTE(carbonize @ Jun 27 2007, 08:18 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=208469"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->In Lazarus I use<br /><br />$include_path = dirname(__FILE__);<br /><br />Which gives me the directory path of the file in question. Couldn't you use something similar?<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />I'm actually looking to create symlinks for a drupal multisite set up I'm wanting to do... so no, that wouldn't work for what I'm wanting to do... thanks though!<!--content-->
Ah the dreaded Drupal. I tried to get Lazarus to work with it but it does something to it's modules that I couldn't be bothered investigating.<!--content-->
Welcome to the forums Seth <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><br />TCH does not allow shell access on shared servers so it is not possible for users on a shared server to create symbolic links. I you open a help desk ticket they may do it for you.<!--content-->
Welcome to the forum, Seth. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Welcome to the forum, Seth <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
 
Top