rtrim () solved the issue. There was a newline sitting at the end of the
variable and messing it up! Thanks for all your help!
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> DougD wrote:
> > I am new to all this, but here is the basic code:
> >
> > $link_titles =
DougD wrote:
I am new to all this, but here is the basic code:
$link_titles = file('links/master.txt');
$links_include = $link_titles[$point]; // path to directory
include $links_include;
If I echo the value of $links_include just prior to the include() function
it contains what I would expect
I am new to all this, but here is the basic code:
$link_titles = file('links/master.txt');
$links_include = $link_titles[$point]; // path to directory
include $links_include;
If I echo the value of $links_include just prior to the include() function
it contains what I would expect it to conta
I've tried a hundred different things -- YOURS WORKED! Thank you very much!
-Doug
- Original Message -
From: "Niklas Lampén" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Monday, June 17, 2002 10:45 PM
Subject: RE: [PHP] include
> Any ideas? Work arounds? I am using PHP3.
Try:
$page = str_replace("?", "&", $page);
That'll change:
include.html?page=main.html?date=12
into:
include.html?page=main.html&date=12
So the variables get passed properly.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-
Hey,
I just signed up on this list. I've got a quick
question.
I am using an #include statment, and here it is:
include.html
---
---
so when I include it looks like this
---
include.html?page=main.html
---
That way the page shown in the include statement is
main.html
My problem comes when
, investigate
"Safe mode" this instant :)
adamw
- Original Message -
From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
To: "Adam Wright" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
"Michael Zornek" <[EMAIL PROTECTED]>
Sent: Wednesday, Januar
*
- Original Message -
From: "Adam Wright" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Michael Zornek"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 17, 2001 10:18 AM
Subject: Re: [PHP] include statement
> For your things (where you are including HTML
Wednesday, January 17, 2001 5:14 PM
Subject: Re: [PHP] include statement
> Adam(and everyone else who answers in 5 minutes, god i love this list),
>
> thanks for the help.
>
> Why is readfile more 'correct'?
>
> Just wondering?
> Mike
>
> At 5:07 PM +
Adam(and everyone else who answers in 5 minutes, god i love this list),
thanks for the help.
Why is readfile more 'correct'?
Just wondering?
Mike
At 5:07 PM + 1/17/01, Adam Wright wrote:
>This is because the PHP include statement is ment to include other blocks of
>PHP c
Michael Zornek wrote:
> which is scary cause this worked too:
>
> include("/usr/local/apache/conf/httpd.conf");
> ?>
>
> doesn't this seem like a huge security hole?
No. If you know can trust your scripts, this is possible, but trusted scripts
won't do any abuse, will they?
If you can't trust y
environments as well; this is also is
described in the manual.
php.net/manual
--Toby
- Original Message -
From: "Michael Zornek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 17, 2001 12:04 PM
Subject: [PHP] include statement
> I'
This is because the PHP include statement is ment to include other blocks of
PHP code, rather than bits of HTML. Hence, it includes things from anywhere
on the system. To include things from under your current htdocs directory,
use...
include($DOCUMENT_ROOT . "/includes/metatags.in
I'm a PHP newbie and am looking into using the include statement to
put things like the header and footer in so they are always the same.
I do this now with SSI. In SSI I'll use the following statement:
I like this cause it lets me use the same statement all over the site
and I don't have to
14 matches
Mail list logo