RE: [PHP] include() question

2002-03-14 Thread Demitrious S. Kelly
Try to simplify the problem $file='index.php?var='; $file.=$var; include($file); -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 1:20 PM To: [EMAIL PROTECTED] Subject: [PHP] include() question Why doesn't this work... include("index.

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
you can't use a variable as a parameter for the included file... because include does nothing else then putting the text of the include file on the place of the include statement... so this should work: $var = 'bladibla'; include('index.php'); Greets, Edward - Original Message - Fro

Re: [PHP] include() question

2002-03-14 Thread Erik Price
On Thursday, March 14, 2002, at 04:34 PM, Edward van Bilderbeek - Bean IT wrote: > you can't use a variable as a parameter for the included file... because > include does nothing else then putting the text of the include file on > the > place of the include statement... Are you sure about th

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
s, Edward - Original Message - From: "Erik Price" <[EMAIL PROTECTED]> To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]> Cc: "Phil Schwarzmann" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 10:58 PM Subject: Re: [

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
PROTECTED]>; "Phil Schwarzmann" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 11:03 PM Subject: Re: [PHP] include() question > On Thu, 14 Mar 2002, Erik Price wrote: > > > > > On Thursday, March 14, 2002, at 04:34 PM, Edward van Bilde

Re: [PHP] include() question

2002-03-14 Thread Erik Price
On Thursday, March 14, 2002, at 05:03 PM, Jan Rademaker wrote: > I think what Edward means is that you can't pass parameters to an > included > file, like include("some.inc?var=value"); > That's true, at least for local > files. include("http://remotesite/some.php?var=value";) will work, as >

Re: [PHP] include() question

2002-03-14 Thread Erik Price
lt;[EMAIL PROTECTED]>; "Phil > Schwarzmann" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Thursday, March 14, 2002 11:03 PM > Subject: Re: [PHP] include() question > > >> On Thu, 14 Mar 2002, Erik Price wrote: >> >>> >>> On Thursd

Re: [PHP] include() question

2002-03-14 Thread Lars Torben Wilson
On Thu, 2002-03-14 at 13:20, Phil Schwarzmann wrote: > Why doesn't this work... > > include("index.php?var='$var'); > > I want to include a page in my code and send a variable to it but I get > some funky error. > > THANKS!! Please read this page carefully, especially the third paragraph an

RE: [PHP] include() question

2002-03-14 Thread Dave
Missing close " for one. v include("index.php?var='$var'"); ^ and you don't need to pass the $var to the include since it will be included, and obviously you already have it declared. if index.php contained and the file you are i

Re: [PHP] Include question

2002-06-01 Thread Bogdan Stancescu
Your second guess. But you could've tested it easily with two includes appending stuff to the same global var. Bogdan John Holmes wrote: >Hi. When I've got code like the following: > >if($this) { include("this.html"); } >elseif($that) { include("that.html"); } > >When are the includes() eval

RE: [PHP] Include question

2002-06-01 Thread John Holmes
To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Include question > > Your second guess. But you could've tested it easily with two includes > appending stuff to the same global var. > > Bogdan > > John Holmes wrote: > > >Hi. When I&#

Re: [PHP] Include question

2002-06-02 Thread Bogdan Stancescu
gt; >---John Holmes... > > > >>-Original Message- >>From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] >>Sent: Saturday, June 01, 2002 11:12 PM >>To: [EMAIL PROTECTED] >>Cc: [EMAIL PROTECTED] >>Subject: Re: [PHP] Include question >> >>

Re: [PHP] Include question

2002-06-02 Thread Analysis & Solutions
Hey John: On Sun, Jun 02, 2002 at 12:10:27AM -0400, John Holmes wrote: > > What I'm looking at is if each include .html file is 50K, am I loading > 100K into memory and then running the script, or running the script and > only loading the appropriate 50K into memory when it's needed? As of 4.0.

RE: [PHP] Include question

2002-06-11 Thread John Holmes
Umm...that's what it's supposed to do...it's "including" it... ---John Holmes... > -Original Message- > From: Tom Ray [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 11, 2002 9:29 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Include question > > I'm trying to use the include function in

Re: [PHP] Include question

2002-06-11 Thread Tom Ray
Yes, but according to http://www.php.net/manual/en/function.include.php I should be able to delcare the include and then pull the information out normally. So by what the manual says I can do this somefile.php callfile.php But when I just do It prints: $apple = 'green'; $pear = 'yellow':

Re: [PHP] Include question

2002-06-11 Thread Justin French
Check that you actually have wrapped around the PHP code in somefile.php that you include. Justin French on 12/06/02 11:36 AM, Tom Ray ([EMAIL PROTECTED]) wrote: > Yes, but according to http://www.php.net/manual/en/function.include.php > I should be able to delcare the include and then pull t

RE: [PHP] Include question

2002-06-11 Thread Peter
: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Include question Yes, but according to http://www.php.net/manual/en/function.include.php I should be able to delcare the include and then pull the information out normally. So by what the manual says I can do this somefile.php

Re: [PHP] Include question

2002-06-11 Thread Tom Ray
Well I got it solved. It would help if I formatted my files correctly. Sorry about that, i've been messing with PHP for about a year now, but am now really diving into it so I may have stupid questions here and there :) TIA to all for help. John Holmes wrote: >Umm...that's what it's supposed

RE: [PHP] Include question

2002-06-11 Thread David Freeman
> somefile.php > $apple = 'green'; > $pear = 'yellow'; > ?> > > callfile.php > include 'somefile.php'; > echo "Apples are $apple and Pears are $pear"; \\ which would > return the > line with green and yellow in the correct spots. > ?> > > But when I just do > > include 'som

Re: [PHP] include() question...

2002-06-20 Thread Purushotham Komaravolu
use header ob_start() $temp = "website.php?var=".$var; header ("Location: $temp"); Puru - Original Message - From: "Phil Schwarzmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 20, 2002 4:31 PM Subject: [PHP] include() question... > Okay, let's say I want to send

Re: [PHP] include() question...

2002-06-20 Thread Philip Olson
> but, if i want to send a user to a website along > with a variable like... > > $temp = "website.php?var=".$var; > include($temp); > > ...this doesn't work. Example: somefile.php now has access to $var. This is talked about in the manual too: http://www.php.net/include In your cas

RE: [PHP] include() question...

2002-06-20 Thread David Freeman
> Okay, let's say I want to send a user to a certain webpage... > > usually I would use... > > include("website.php"); > > but, if i want to send a user to a website along with a > variable like... > > $temp = "website.php?var=".$var; > include($temp); > > ...this doesn't work.

Re: [PHP] include question

2001-09-17 Thread Scott
At 02:03 AM 9/18/2001 +0200, Chris Hayes wrote: > 2) let them make a real template, either a file or a database >cell, for instance > fhkhfsahehfaa[DATA1] >and do a str replace [DATA1] parts --> database content. Chris- YOU ROCK! Thank you for the thought starter, I have been beating m

Re: [PHP]include question, WHY doesn't this work...

2001-07-23 Thread Unni
Is the lib direcotory under the working directory, I mean, if your program is excuting under temp directory, the lib directory has to be below temp directory. If you are running this program from the root directory then lib has to be below root directory. Your code looks good to me. One more t

Re: [PHP]include question, WHY doesn't this work...

2001-07-23 Thread Chris Cocuzzo
lt;[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, July 23, 2001 3:52 PM Subject: Re: [PHP]include question, WHY doesn't this work... > Is the lib direcotory under the working directory, I mean, if your > program is excuting under temp directory, the lib directory has to

RE: [PHP]include question, WHY doesn't this work...

2001-07-23 Thread Gonyou, Austin
] > Sent: Monday, July 23, 2001 2:53 PM > To: Chris Cocuzzo > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP]include question, WHY doesn't this work... > > > Is the lib direcotory under the working directory, I mean, if your > program is excuting under temp directory,