473,402 Members | 2,064 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

how to access PEAR In my hosting environment

My hosting company has pre-intalled PEAR in a directory out of the web
directory (and not in php-includes).

I've tried including the absolute /to/path/ in the requre statement but it
does not work.

How would I access the PEAR packages?

Many thanks.
Jul 17 '05 #1
6 2472
NotGiven wrote:
My hosting company has pre-intalled PEAR in a directory out of the web
directory (and not in php-includes).

I've tried including the absolute /to/path/ in the requre statement
but it does not work.

How would I access the PEAR packages?


Check the open_basedir directive in the php.ini file. Chances are that it
doesn't include the path to the PEAR installation.

When this is the case and you are unable to edit the php.ini file yourself,
all you can do is asking your hosting provider to include this path.
JW

Jul 17 '05 #2
In article <41***********************@news.euronet.nl>, Janwillem Borleffs wrote:
NotGiven wrote:
My hosting company has pre-intalled PEAR in a directory out of the web
directory (and not in php-includes).

I've tried including the absolute /to/path/ in the requre statement
but it does not work.

How would I access the PEAR packages?


Check the open_basedir directive in the php.ini file. Chances are that it
doesn't include the path to the PEAR installation.

When this is the case and you are unable to edit the php.ini file yourself,
all you can do is asking your hosting provider to include this path.


or use http://www.php.net/ini_set

--
Tim Van Wassenhove <http://home.mysth.be/~timvw>
Jul 17 '05 #3
In article <2p************@uni-berlin.de>,
Tim Van Wassenhove <eu**@pi.be> wrote:
In article <41***********************@news.euronet.nl>, Janwillem Borleffs
wrote:
NotGiven wrote:
My hosting company has pre-intalled PEAR in a directory out of the web
directory (and not in php-includes).

I've tried including the absolute /to/path/ in the requre statement
but it does not work.

How would I access the PEAR packages?


Check the open_basedir directive in the php.ini file. Chances are that it
doesn't include the path to the PEAR installation.

When this is the case and you are unable to edit the php.ini file yourself,
all you can do is asking your hosting provider to include this path.


or use http://www.php.net/ini_set


I followed the instructions in PROGRAMMING IN PHP to access the PEAR DB
class, but my web hosting ISP's php configuration didn't allow it. Just
using the

require_once("DB.php");

would fail, even though the php variable include_path was set correctly
in the php.ini file. For some reason, the require will _work_ if I
include the following _before_ the require:

ini_set('include_path', ini_get('include_path')); # lets PEAR work

Why is this required? This is php 4.3. Is there some internal bug that
doesn't correctly access the include_path until it's "set" by ini_set?
I didn't see anything in the docs on http://www.php.net

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 17 '05 #4
In article <vi**************************@comcast.dca.giganews .com>, "Michael Vilain <vi****@spamcop.net>" wrote:
would fail, even though the php variable include_path was set correctly
in the php.ini file. For some reason, the require will _work_ if I
include the following _before_ the require:

ini_set('include_path', ini_get('include_path')); # lets PEAR work

Why is this required? This is php 4.3. Is there some internal bug that
doesn't correctly access the include_path until it's "set" by ini_set?
I didn't see anything in the docs on http://www.php.net

It's always handy to have a look at http://bugs.php.net in that case.
And it also handy to know that on a windows platform you have to
separate values with ; and on a unix platform with :

As in: include_path=.;c:/libs/pear VS include_path=.:/usr/lib/pear
--
Tim Van Wassenhove <http://home.mysth.be/~timvw>
Jul 17 '05 #5
In article <2p************@uni-berlin.de>,
Tim Van Wassenhove <eu**@pi.be> wrote:
In article <vi**************************@comcast.dca.giganews .com>, "Michael
Vilain <vi****@spamcop.net>" wrote:
would fail, even though the php variable include_path was set correctly
in the php.ini file. For some reason, the require will _work_ if I
include the following _before_ the require:

ini_set('include_path', ini_get('include_path')); # lets PEAR work

Why is this required? This is php 4.3. Is there some internal bug that
doesn't correctly access the include_path until it's "set" by ini_set?
I didn't see anything in the docs on http://www.php.net

It's always handy to have a look at http://bugs.php.net in that case.
And it also handy to know that on a windows platform you have to
separate values with ; and on a unix platform with :

As in: include_path=.;c:/libs/pear VS include_path=.:/usr/lib/pear


Not relevant really. The ISP runs Debian Linux. My MacOS X system is
10.3.5. Both php implementations have this problem. The bugs section
didn't give anything. The php.ini file on the ISP has

include_path=.:/usr/lib/pear

which is correct. But it only works if you use the ini_set function in
a script. Should this be logged as a bug on 4.x?

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 17 '05 #6
Tim Van Wassenhove wrote:
or use http://www.php.net/ini_set


open_basedir can only be set in the php.ini file...
JW

Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Guy | last post by:
I got a big Access file (1 400 tables) to convert to SQL and I would like to be provided with some automated tools, except upsizing wizard and DTS, to convert it on my own. I got a lot of forms...
1
by: Mike | last post by:
Hi Hi We are currently upgrading from access 97 to office 2003 on site. We would like to upgrade our access databases to Access 2003 but we wish to remove Microsoft access software from our end...
0
by: Dave LLoyd | last post by:
Hi, Does anyone know of any concise documents that detail securing the .net framework installation in a shared web hosting environment? Thanks, Dave.
0
by: rodchar | last post by:
hey all, has anyone gotten WebRequest to work in a share hosting environment? thanks, rodchar
7
by: irfanali | last post by:
Hallo All, I m trying to create a Multi User Data Program on Access, where my team members would input data on a daily basis. Well the Problems start now : - How do i create a Multi-user...
2
by: Jack | last post by:
Sorry for the double post (also in the IIS group). We've got an ASP.Net 2.0 app running on IIS6. We kept losing sessions, and enabled health monitoring to see what was happening. This morning...
3
by: cephal0n | last post by:
I distributed my tblRental.mdb in my friends Ms Access runtime environment. It was successful when I configure Tools > Startup. I didn't change anything else in the startup, I just selected the form...
2
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I am monitoring web apps with the windows event log and noticed several (Hosting environment is shutting down) statements. The server appears to still be running, just wondering any ideas on...
0
by: yamadonga | last post by:
Hi.. I have hosted my Asp.net application on Godaddy shared hosting environment. Now I want to upload images to my hosting server by using my code. So I used file upload control to upload my files,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.