Jump to content

Recommended Posts

Posted

I want to know if I can configure an include_path, so that I can store some php includes in there (for my shared function libraries) -- I want the functionality of "include_path" in the php.ini

 

I'm guessing this can't be done since it's a shared server? Please advise

Posted

I just tried with a phpinclude folder created in the home folder above public_html

 

php_value include_path '/home/cpanelname/phpinc/'

and it works, but you will have to add paths to the includes if they are not in the include folder of course.

 

And you can put the include folder anywhere in the public_html folder too

just change to

php_value include_path '/home/cpanelname/public_html/phpinc/'

Posted

Thanks for the tip Don, I'll give it a try ;)

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