Go Back   HostGator Peer Support Forums > Public Forums > Suggestions

Notices

Reply
 
Thread Tools
  #1  
Old 08-04-2008, 02:01 PM
gemal's Avatar
gemal gemal is offline
Hatchling Croc
 
Join Date: May 2008
Location: Copenhagen Denmark
Posts: 16
Default add /home/[username]/pear to include_path

Per standard PEAR modules are installed in the /home/[username]/pear directory

Why isn't this directory added to the PHP include_path per automatically.

This way it would be much simpler to include those user installes modules.

So instead of something ugly like:
$path = "/home/[username]/php";
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
require_once "My/Module.php";

I could just do:
require_once "My/Module.php";
Reply With Quote
  #2  
Old 01-07-2009, 12:19 PM
rcg1984 rcg1984 is offline
Hatchling Croc
 
Join Date: Nov 2008
Posts: 9
Default Re: add /home/[username]/pear to include_path

I replaced include_path to "/home/dottedqu/php/"; with success afterwards :-)

-Rich
Reply With Quote
  #3  
Old 01-07-2009, 02:29 PM
gemal's Avatar
gemal gemal is offline
Hatchling Croc
 
Join Date: May 2008
Location: Copenhagen Denmark
Posts: 16
Default Re: add /home/[username]/pear to include_path

Quote:
Originally Posted by rcg1984 View Post
I replaced include_path to "/home/dottedqu/php/"; with success afterwards :-)

-Rich
I'm not sure what you mean? Did you fix the issue or...?
Reply With Quote
  #4  
Old 02-07-2009, 12:48 AM
GatorThomas
HostGator Guest
 
Posts: n/a
Default Re: add /home/[username]/pear to include_path

You can have us setup a custom php.ini on your account with the required include_path. Just login to chat, and have the representative get in touch with an Admin to have a php.ini placed on your account, then provide the necessary entries and the values they should be set to.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cron and include_path gemal Shared Hosting Support 0 06-24-2008 01:44 PM
Pear packages gobezu Shared Hosting Support 4 03-25-2007 10:19 AM
Pear for PHP Michael_noncustomer Pre-Sales Questions 1 11-08-2005 04:14 PM
PHP PEAR Support and PEAR Cache_lite Unregistered Pre-Sales Questions 1 10-23-2004 04:37 PM

All times are GMT -5. The time now is 03:42 PM.