Jump to content

Recommended Posts

Posted

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.

 

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:

 

$_SERVER['DOCUMENT_ROOT'] . '/libraries/'

 

regardless of whether I'm calling that from within my subdomain or from the main www location.

 

Any ideas from the guru's out there?

Posted

Hi.

 

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 :)

  • 2 years later...
Posted
Hi.

 

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 ;)

 

Is this still the case? Or can regular dudes create symlinks now?

 

Thanks.

 

Seth.

Posted

In Lazarus I use

 

$include_path = dirname(__FILE__);

 

Which gives me the directory path of the file in question. Couldn't you use something similar?

Posted
In Lazarus I use

 

$include_path = dirname(__FILE__);

 

Which gives me the directory path of the file in question. Couldn't you use something similar?

 

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!

Posted

Welcome to the forums Seth :)

 

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...