473,791 Members | 3,122 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2492
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************ ***********@new s.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************ ***********@new s.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("D B.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('includ e_path', ini_get('includ e_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.gig anews.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('includ e_path', ini_get('includ e_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.gig anews.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('includ e_path', ini_get('includ e_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
8267
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 and query to convert too. Can someday provide me with at least one tool name ? Thanks,
1
5168
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 users so that we can control the creation of databases. Is there a way that our end users can still use these upgraded access databases without having access 2003 installed on their machines. The mdes will reside on a server so they can be...
0
917
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
926
by: rodchar | last post by:
hey all, has anyone gotten WebRequest to work in a share hosting environment? thanks, rodchar
7
3522
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 Environment, so that my Backend is on the Sharedrive(Local Server) and the Front end on the respective user systems? - Well, once i achieve that, then how do i hide the Access data like Tables, Queries and Forms from Viewing by the user on the Front...
2
13675
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 the got the following in the logs. Any idea what would cause it? Event code: 1002 Event message: Application is shutting down. Reason: Hosting environment is shutting down. Event time: 7/17/2007 10:28:37 AM
3
1768
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 I want to view first in Display Form/Page. so now my question is why is it that every time I run my table I don't see my "Allow Toolbar/Menu Changes" and others. can anyone pls. help me because I really want to fix this problem. What did I do wrong?...
2
2022
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 what can cause this, thanks. -- Paul G Software engineer.
0
1699
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, when I am trying to upload file on to my web server every time it's prompting window for user name password of my domain .can anyone tell me how can I upload a file on to my shared hosting environment without prompting authentication window....
0
9666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9512
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10419
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10147
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9987
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7531
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6770
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5424
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4100
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.