Re: [PHP-DB] include() statement hell!

2002-03-28 Thread Brad Melendy
It's good coding habit, and it sometimes will save you from some "constant" > headaches (pun intended for everyone who has run into this problem before). > > - Jonathan > > > > -Original Message- > From: Brad Melendy [mailto:[EMAIL PROTECTED]] > Sent: Thur

RE: [PHP-DB] include() statement hell!

2002-03-28 Thread Jonathan Hilgeman
No problem. I wonder if there's a web-based syntax checker for PHP... - Jonathan -Original Message- From: Brad Melendy [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 12:23 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] include() statement hell! Man, this means I ha

Re: [PHP-DB] include() statement hell!

2002-03-28 Thread Brad Melendy
k up any errors. > > Also, check your error log if you have one (contact your hosting company > if > > you're not sure). > > > > I would definitely try to solve this the normal way by finding the problem > > with the paths rather than trying to screw with your php.ini o

RE: [PHP-DB] include() statement hell!

2002-03-28 Thread Jonathan Hilgeman
who has run into this problem before). - Jonathan -Original Message- From: Brad Melendy [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 12:06 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] include() statement hell! Thanks Jonathan, Your suggestions were very helpful, especiall

RE: [PHP-DB] include() statement hell!

2002-03-28 Thread Jonathan Hilgeman
This might be your problem: mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 12:06 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] include() statement hell! Thanks Jonathan, Your suggestions were very helpful, especially turning on the error logging. Here is where I'm at now: Fil

Re: [PHP-DB] include() statement hell!

2002-03-28 Thread Brad Melendy
ld definitely try to solve this the normal way by finding the problem > with the paths rather than trying to screw with your php.ini or httpd.conf > file - otherwise you'll have a script that might not work if you ever have > to move your scripts or copy them to a development server

RE: [PHP-DB] include() statement hell!

2002-03-28 Thread JD Daniels
ay, March 28, 2002 10:10 AM To: 'Brad Melendy'; [EMAIL PROTECTED] Subject: RE: [PHP-DB] include() statement hell! > So, maybe this is the question. Can you include a file from > /main/page.php by using a path of /includes/dblib.inc? Probably not. PHP can "see" the whole

RE: [PHP-DB] include() statement hell!

2002-03-28 Thread Jonathan Hilgeman
: Wednesday, March 27, 2002 7:27 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] include() statement hell! Thanks Jonathan, I'm trying to include a file /includes/dblib.inc from /main/page.php. In /main/page.php I use include("includes/dblib.inc");. When that didn't work, I

Re: [PHP-DB] include() statement hell!

2002-03-27 Thread Jason Wong
On Thursday 28 March 2002 14:58, Brad Melendy wrote: > How is this different than using the php.ini file? > > "Photocon" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > At 22:41 3/27/2002 -0600, Dan Brunner wrote: > > >Has anybody told him to check his PHP

Re: [PHP-DB] include() statement hell!

2002-03-27 Thread Brad Melendy
How is this different than using the php.ini file? "Photocon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > At 22:41 3/27/2002 -0600, Dan Brunner wrote: > >Has anybody told him to check his PHP.INI??? > > How about adding the following to httpd.conf: > > php_

Re: [PHP-DB] include() statement hell!

2002-03-27 Thread Brad Melendy
t: Wednesday, March 27, 2002 6:28 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP-DB] include() statement hell! > > #1. You may want to double-check the path where you're calling it from > in > case you're working with subdirectories. > > Let's s

RE: [PHP-DB] include() statement hell!

2002-03-27 Thread Photocon
At 22:41 3/27/2002 -0600, Dan Brunner wrote: >Has anybody told him to check his PHP.INI??? How about adding the following to httpd.conf: php_value include_path .:/usr/share/php:/path/to/webpages --Photocon Conrad Hunziker III www.nightskyent.com -- PHP Database Mailing List (http://www.php.

RE: [PHP-DB] include() statement hell!

2002-03-27 Thread Dan Brunner
Has anybody told him to check his PHP.INI??? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 6:28 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP-DB] include() statement hell! #1. You may want to double-check the path

Re: [PHP-DB] include() statement hell!

2002-03-27 Thread Brad Melendy
quest correctly. > > #3. Please give us a little more detail on the errors you're getting (any > specific messages would be nice). > > - Jonathan > > -Original Message- > From: Rick Emery [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 27, 2002 3:42 PM

Re: [PHP-DB] include() statement hell!

2002-03-27 Thread Brad Melendy
Hi Rick, Yes, this is the first thing I checked. Thanks for your suggestion. ...Brad "Rick Emery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > did you start each include file with: > ?> > > If not, PHP treats the code within as straight text > > -Orig

RE: [PHP-DB] include() statement hell!

2002-03-27 Thread Jonathan Hilgeman
il on the errors you're getting (any specific messages would be nice). - Jonathan -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 3:42 PM To: 'Brad Melendy'; [EMAIL PROTECTED] Subject: RE: [PHP-DB] include() statement hell! di

RE: [PHP-DB] include() statement hell!

2002-03-27 Thread Rick Emery
did you start each include file with: If not, PHP treats the code within as straight text -Original Message- From: Brad Melendy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 5:03 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] include() statement hell! Ok, I've spent some time