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'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-
, 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 code, rather than bi
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
This all depends on your include_path set in the PHP config files; see the
manual section on config for more info.
About the security hole... yes it would be dangerous on a system where
accounts are given to untrusted users (ie, customers), but there are ways
to make PHP secure for multi-account
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.include");
thoug
11 matches
Mail list logo