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

[PHP] include statement giving me hives! - help

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

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-

[PHP] Include statement problems

2001-01-21 Thread Si Wizard
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

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 c

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
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'

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.in

[PHP] include statement

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