On Thu, October 5, 2006 6:18 pm, John Wells wrote:
> On 10/5/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
>> include_path is a much more powerful and flexible construct which
>> will
>> save you an inordinate amount of trouble if you just figure out how
>> it
>> works and use it...
>
> Point well t
I dunno whose answer you were thinking of...
include_path('.:/var/www/html');
PHP will find it in /var/www/html
My answer was to set include_path correctly, and NOT attempt to hack
up some hard-coded mess in your PHP source.
On Thu, October 5, 2006 4:29 pm, Deckard wrote:
> Hi Richard,
>
> Than
On 10/5/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
include_path is a much more powerful and flexible construct which will
save you an inordinate amount of trouble if you just figure out how it
works and use it...
Point well taken Richard, thanks.
I've always been curious, iIs there a point i
Hi Richard,
Thank you so much for your answer.
dbInsert.php is in /var/www/html/classes while config.inc.php is in
/var/www/html
With your code, the file is always searched in /var/www/html/classes and
not in /var/www/html
Warm Regards,
Deckard
Richard Lynch wrote:
> On Thu, October 5, 2006 2:
On Thu, October 5, 2006 2:34 am, John Wells wrote:
> [code]
> // Consider *where* you create this
> // Define it as a constant if you'd like...
> define('BASE_PATH', dirname(__FILE__));
>
> // Now build the path, like (assuming it was created
> // in a file located at /var/www/html
> include_once(
On 10/5/06, Deckard <[EMAIL PROTECTED]> wrote:
config.inc.php is in /var/www/html
and the file that calls it is in
/var/www/html/classes
Hi Deckard,
You've said that the file that is trying to perform the include is
located in /var/www/html/classes, right? Which suggests to me that
*that* fil
Yes, permissions are fine :(
Ben Ramsey wrote:
> On 10/4/06 9:14 PM, Deckard wrote:
>> It's a typo.
>> The file is really config.inc.php everywhere
>
> Check the file permissions. Does the Webserver have permission to read
> from the /var/www/html (it probably does, but it wouldn't hurt to
> chec
On 10/4/06 9:14 PM, Deckard wrote:
It's a typo.
The file is really config.inc.php everywhere
Check the file permissions. Does the Webserver have permission to read
from the /var/www/html (it probably does, but it wouldn't hurt to
check)? Does the Web server have permission to read
/var/www/h
Hi,
It's a typo.
The file is really config.inc.php everywhere
Regards,
Deckard
Ben Ramsey wrote:
> On 10/4/06 8:32 PM, Deckard wrote:
>> Hi,
>>
>> I have this line of code:
>> include_once('../config.inc.php');
>>
>> I'm 100% sure that the file config.inc.php is a directory up.
>>
>> config.inc.
9 matches
Mail list logo