Re: [PHP] include statement giving me hives! - SOLVED

2003-07-17 Thread DougD
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 =

Re: [PHP] include statement giving me hives! - help

2003-07-17 Thread Marek Kilimajer
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

Re: [PHP] include statement errors -- something missing

2002-06-18 Thread Doug DeVries
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

Re: [PHP] Include statement problems

2001-01-21 Thread Stephan Ahonen
> 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-

Re: [PHP] include statement

2001-01-17 Thread Adam Wright
, 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

Re: [PHP] include statement

2001-01-17 Thread Karl J. Stubsjoen
* - 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

Re: [PHP] include statement

2001-01-17 Thread Adam Wright
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 +

Re: [PHP] include statement

2001-01-17 Thread Michael Zornek
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

Re: [PHP] include statement

2001-01-17 Thread Alexander Wagner
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

Re: [PHP] include statement

2001-01-17 Thread Toby Butzon
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

Re: [PHP] include statement

2001-01-17 Thread Adam Wright
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