Re: include() statement hell!
| From: | Brad Melendy | Date: | Thu, 28 Mar 2002 03:03:40 +0000 |
| Subject: | Re: include() statement hell! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17968@lists.php.net to get a copy of this message | ||
Hi Rick,
Yes, this is the first thing I checked. Thanks for your suggestion.
...Brad
"Rick Emery" <remery@excel.com> wrote in message
news:EAA093B474ABD311A71E00508B5FE08305C2D3C0@adntex03.us.excel.com...
> did you start each include file with:
> <?php
> ?>
>
> If not, PHP treats the code within as straight text
>
> -----Original Message-----
> From: Brad Melendy [mailto:brad@techknow.biz]
> Sent: Wednesday, March 27, 2002 5:03 PM
> To: php-db@lists.php.net
> Subject: [PHP-DB] include() statement hell!
>
>
> Ok, I've spent some time reading the docs at php.net and I'm still
confused.
>
> After a couple hours, I have an include file working with a statement
like:
>
> include ("dblib.inc");
>
> However, to add to my confusion, I've got a second include file statement
on
> the next line:
>
> include ("userlib.inc");
>
> And that doesn't work.
>
> Most crazy of all, if I just put the darn functions all in the PHP file
that
> is trying to call the include files, everything works perfectly.
>
> So far I have my include_path line in the pho.ini file set to no value
since
> I'm just using include files that exist in the same directory as the
calling
> php file. this after I could NOT get the files to be properly recognized
> from their own include directory. As far as I'm concerned, you should be
> able to include a relative path with the included filename and have it
work.
> Too bad that doesn't work in PHP.
>
> So, long story short, I'm about to give up on include statements and just
> copy and paste my functions all over the place. Does anyone have any
ideas
> why this is so difficult for me? What am I missing? This stuff is easy
in
> ASP but PHP is giving me serious heart-ache. :-(
>
> Thanks for any tips or suggestions.
>
> ....Brad
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php