Jump to content

Recommended Posts

Posted

One of my sites loads PHP libraries that exist in a directory outside public_html (safer). On my home computer, instead of hardcoding the path to these libraries, I set the include_path to point to that directory.

 

However, on TCH servers, I (understandably) cannot set the include_path. What are my options? I could write a loadLibrary() function, so that I only have to hardcode the path once. Any other ideas?

 

Thanks.

Posted

Are you sure you can't set the include_path? I used to have two sites that were setting the include_path and they were working just fine... :P

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...