[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] PHP include() error...RAQ3 problem?
- Subject: Re: [cobalt-users] PHP include() error...RAQ3 problem?
- From: "Steven Werby" <steven-lists@xxxxxxxxxxxx>
- Date: Mon Aug 28 05:49:10 2000
Cobalt <cobalt@xxxxxxxxxxxx> wrote:
> O.K. so it turned out to by a syntax/programming error...After a day of
> playing with it...going back and forth with people on the PHP lists...trying
> everything under the sun...I figured it out.
>
> If anyone cares...here is the problem:
>
> I was using
>
> <?
> include("/home/sites/site#/file.html");
> ?>
>
> Code looks correct?..right...wrong. It turns out that you either have to
> either use single quotes:
>
> include('/home/sites/site#/file.html');
>
> or not parenthases:
>
> include "/home/sites/site#/file.html";
Scott, I don't find that to be the case. I have hundreds of include()
statements that look like the line below:
<? include("../inc/page_header.php"); ?>
If you still have the PHP source code from a web page that gave you an error
feel free to send it to me off-list and I'll take a look at it. There may have
been a different syntax error in your code that no longer is there that caused
the error.
--
Steven Werby {steven-lists@xxxxxxxxxxxx}