Re: trying to use Table.php

From: Date: Mon, 16 Jun 2003 18:13:41 +0000
Subject: Re: trying to use Table.php
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6006@lists.php.net to get a copy of this message
Fun stuff. Had an issue like this with my web host. The guy told me that PEAR was installed, he knew nothing about PHP (He was a nice guy though) and he had not properly configured his php.ini for inclusion (e.g. set .;/path/to/pear/) I found out where he had PEAR stored, which was pretty standard at /usr/share/pear So I did the following: ini_set("include_path","/usr/share/pear"); include_once("/usr/share/pear/DB.php"); ini_restore("include_path"); First, I set a path for inclusion, so that after I designate what file I am going to include all includes within that file stay within that path I set. I did this because otherwise PHP includes from the directory of the script you're executing, which doesn't do me any good. After I have loaded the file, using the full path (Cause like I said, they didn't configure PHP correctly) I restore the include path to how it is set in the PHP ini, that way no other includes act goofy on me. Give this a shot, granted you may need to inquire from your host where PHP is at. When I got a response similar to your this is what I did to solve the task, its a hassle, but unless you can edit the ini we're screwed. Also, you may want to ask them what packages they have installed. Mine has DB, and Mail, but no Mail_Mime, etc. Hope that helps, - Stan<br> Jeroen van Vlierden wrote:
when i use in my PHP file require_once "HTML/Table.php"; I get the message Fatal error: Failed opening required 'HTML/table.php' (include_path='.:/usr/local/psa/apache/lib/php') when I am putting the PHP file on my webhost's server when I execute it on my local computer (WIN-XP, IIS) it works fine my webhost claims they support PHP and PEAR and that it is my fault someone has a clue for me what to do next??


« previous php.pear.general (#6006) next »