Re: [PHP] include question

2009-03-07 Thread Nathan Rixham
Daniel Brown wrote: On Fri, Mar 6, 2009 at 08:53, Stuart wrote: 1.) We use regular open tags to be compatible with all stock PHP configurations. 2.) We echo out the response from dirname() so that it's output to the HTML source. 3.) We use dirname() twice, so it gives the d

Re: [PHP] include question

2009-03-06 Thread PJ
Daniel Brown wrote: > On Fri, Mar 6, 2009 at 08:53, Stuart wrote: > >>>1.) We use regular open tags to be compatible with all stock >>> PHP configurations. >>>2.) We echo out the response from dirname() so that it's >>> output to the HTML source. >>>3.) We use dirname()

Re: [PHP] include question

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 08:53, Stuart wrote: >> >>        1.) We use regular open tags to be compatible with all stock >> PHP configurations. >>        2.) We echo out the response from dirname() so that it's >> output to the HTML source. >>        3.) We use dirname() twice, so it gives the dirnam

Re: [PHP] include question

2009-03-06 Thread Stuart
2009/3/6 Daniel Brown > On Fri, Mar 6, 2009 at 08:37, PJ wrote: > > good morning all, > > > > How can I include src and href in include files that will refer the > > right paths from files in different hierarchies(directory tree levels)? > > Example: > > include dirname(_FILE_)."/../lib/header1.

Re: [PHP] include question

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 08:37, PJ wrote: > good morning all, > > How can I include src and href in include files that will refer the > right paths from files in different hierarchies(directory tree levels)? > Example: > include dirname(_FILE_)."/../lib/header1.php"; ? > > This does not work: > snip

[PHP] include question

2009-03-06 Thread PJ
good morning all, How can I include src and href in include files that will refer the right paths from files in different hierarchies(directory tree levels)? Example: include dirname(_FILE_)."/../lib/header1.php"; ? This does not work: snippetysnip... Nor does this: (NOTE THE DIFFERENCES " AND

Re: [PHP] include() question

2006-05-09 Thread Richard Lynch
On Mon, May 8, 2006 1:42 pm, PHP wrote: > Normally I would, except that file does a lot of work, and it was too > much > to have on the same server. That is why I was including it remotely. Unless the remote server is HUMUNGOUS compared to the original server, or it just has nothing else to do but

Re: [PHP] include() question

2006-05-08 Thread Wolf
Sounds like a good reason to lobby for new hardware!! :) Also sounds like why it might be timing out for you as well. Depending on how "core" that file is to your business and online presence (and they both matter equally), you might want to look at investing in new hardware for the server(s) so

Re: [PHP] include() question

2006-05-08 Thread PHP
ent: Monday, May 08, 2006 11:21 AM Subject: Re: [PHP] include() question Bad programmer! No Donut! Just out of curiosity, why not just rsync the file over or copy it straight to the server you are running? That way you don't have to worry about it going missing. No telling when a server HD

Re: [PHP] include() question

2006-05-08 Thread Wolf
Bad programmer! No Donut! Just out of curiosity, why not just rsync the file over or copy it straight to the server you are running? That way you don't have to worry about it going missing. No telling when a server HD might go t*ts up and you'll be left holding the bag(s). Wolf PHP wrote: > Hi

Re: [PHP] include() question

2006-05-08 Thread PHP
Hey, what do you know, readfile() times out too. - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]>; "php" Sent: Monday, May 08, 2006 11:05 AM Subject: RE: [PHP] include() question [snip] I am incl

Re: [PHP] include() question

2006-05-08 Thread PHP
Yeah... The page does produce valid code. However, the manual didn't say anything about timing out. - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]>; "php" Sent: Monday, May 08, 2006

Re: [PHP] include() question

2006-05-08 Thread Richard Lynch
On Mon, May 8, 2006 12:55 pm, PHP wrote: > I am including a page from another server: (include("http://";)); > > Works fine, but if for some reason that server is not responding, the > page that is calling it also never returns, so the user ends up with a > time out. > > Is there something I ca

RE: [PHP] include() question

2006-05-08 Thread Jay Blanchard
[snip] I am including a page from another server: (include("http://";));   Works fine, but if for some reason that server is not responding, the page that is calling it also never returns, so the user ends up with a time out.   Is there something I can set that will not force the calling serve

[PHP] include() question

2006-05-08 Thread PHP
Hi, I am including a page from another server: (include("http://"));   Works fine, but if for some reason that server is not responding, the page that is calling it also never returns, so the user ends up with a time out.   Is there something I can set that will not force the calling se

RE: [PHP] include question

2004-06-28 Thread Aaron Axelsen
Thanks, worked wonders. -- Aaron Axelsen Email: [EMAIL PROTECTED] -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Monday, June 21, 2004 10:40 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] include question On Mon, 21 Jun 2004 10:31:42 -0500

Re: [PHP] include question

2004-06-21 Thread Keith Greene
Aaron, I copied your code to a test file called test.php and created the following pages as dummy includes: verify_faculty_info.php, functions.php and accesscontrol.php in functions.php, I created a dummy search function: function search(){ return "Found!"; } in verify_faculty_info.php, I

Re: [PHP] include question

2004-06-21 Thread Greg Donald
On Mon, 21 Jun 2004 10:31:42 -0500 (CDT), Aaron Axelsen <[EMAIL PROTECTED]> wrote: > Below is the chunk of code i am using. In the verify_faculty_info.php > file i call the search function. The search function is coded in the > function.php file which is included in the accesscontrol.php. > > I

[PHP] include question

2004-06-21 Thread Aaron Axelsen
Below is the chunk of code i am using. In the verify_faculty_info.php file i call the search function. The search function is coded in the function.php file which is included in the accesscontrol.php. I thought that it would carry over to the verify_Faculty_info.php file. Was I mistaken? Thank

Re: [PHP] include question

2003-06-28 Thread John Luxford
Hi Blake, If you're using Apache, try this: http://ca3.php.net/virtual Cheers, Lux On Friday, June 27, 2003, at 01:05 PM, Blake Schroeder wrote: Hey all I used to include a perl script via Sever Side Include how could I do this in php? example: -- Blake Schroeder [EMAIL PROTECTED] -- PH

Re: [PHP] include question

2003-06-27 Thread Leif K-Brooks
Blake Schroeder wrote: Hey all I used to include a perl script via Sever Side Include how could I do this in php? example: You can't use SSI in PHP. PHP is not SSI. You can do something similar though, www.php.net/virtual. -- The above message is encrypted with double rot13 encoding. Any

RE: [PHP] include question

2003-06-27 Thread Jay Blanchard
[snip] I used to include a perl script via Sever Side Include how could I do this in php? example: [/snip] exec("/cgi-bin/something.pl?data=something"); HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] include question

2003-06-27 Thread Blake Schroeder
Hey all I used to include a perl script via Sever Side Include how could I do this in php? example: -- Blake Schroeder [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Include Question

2003-03-27 Thread Jennifer Goodie
2003 2:28 PM To: James E Hicks III Cc: PHP General Subject: Re: [PHP] Include Question Just a typo, but now I have other problems as well which I think have to do with paths and includes. If I am in the root directory on page main.html and click on a link that is in /other - because this

Re: [PHP] Include Question

2003-03-27 Thread Beauford.2002
;[EMAIL PROTECTED]> Sent: Thursday, March 27, 2003 4:15 PM Subject: RE: [PHP] Include Question > If checklogin.php is only below, you shouldnn't get those errors. Anyway, > is password just a typo below or does your code omit the $ too? > > > if (!$name || !password) {

[PHP] Include Question

2003-03-27 Thread Beauford.2002
Hi, First, I fixed my other problem of the stack overflow by moving the files back to the root directory (although I would rather have them in a login directory). Anyway, I have a question regarding the include function. I have a login script in a file called login.php - in this file it includes c

Re: [PHP] include question

2003-01-15 Thread Christoph Grottolo
[EMAIL PROTECTED] (Brad Bonkoski) wrote: >It would probably be best to include the absolute path to the images. >so instead of: use: >Is something like that possible? ??? forget this... this will only work on some browsers and as long as you keep the files exactly there. >Otherwise at the very

RE: [PHP] include question

2003-01-15 Thread Ryan Cassin
No unfortunately something like that isn't possible... The HTML files are generated by a closed-source application. -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 5:04 PM To: Ryan Cc: [EMAIL PROTECTED] Subject: Re: [PHP] in

Re: [PHP] include question

2003-01-15 Thread Brad Bonkoski
It would probably be best to include the absolute path to the images. so instead of: use: Is something like that possible? Otherwise at the very least you should use: HTH -Brad Ryan wrote: > Hello all, > > I'm have a PHP script that works in a folder.. for the sake of clarity we'll > call it c:

[PHP] include question

2003-01-15 Thread Ryan
Hello all, I'm have a PHP script that works in a folder.. for the sake of clarity we'll call it c:\project In c:\project\htmls there are several HTML documents which refer to images in the project\htmls directory with tags like In my PHP script in c:\project I include "htmls/file.html" and the

RE: [PHP] "include" question

2002-12-12 Thread Ronald Clark
Thanks! Works perfect with double quotes! RC -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 8:21 AM To: Ronald Clark Cc: [EMAIL PROTECTED] Subject: Re: [PHP] "include" question Hi, Friday, December 13, 2002, 12:07:05 AM,

Re: [PHP] "include" question

2002-12-12 Thread Tom Rogers
Hi, Friday, December 13, 2002, 12:07:05 AM, you wrote: R> Hello all, R> I am passing a variable like so: R> R> On the "link.php" page, I have this simple code: R> $job = $_GET['foo']; R> echo "$job"; // for error checking R> include 'path/to/$job'; ?>> R> The 'echo "$job";' statement works

Re: [PHP] "include" question

2002-12-12 Thread Leif K-Brooks
Variables don't get parsed in single quotes, use double quotes. RClark wrote: Hello all, I am passing a variable like so: On the "link.php" page, I have this simple code: $job = $_GET['foo']; echo "$job"; // for error checking include 'path/to/$job'; ?> The 'echo "$job";' statement works

[PHP] "include" question

2002-12-12 Thread RClark
Hello all, I am passing a variable like so: On the "link.php" page, I have this simple code: The 'echo "$job";' statement works just fine, but the outbout for the include statement looks like this: bar.php Warning: Failed opening 'scripts/$job' for inclusion (include_path='.:/usr/local/lib/php

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

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 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()

[PHP] include() question...

2002-06-20 Thread Phil Schwarzmann
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. any suggestions?? THANKS!!

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-11 Thread Tom Ray
7;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

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 Justin French
at? > > > John Holmes wrote: > >> Umm...that's what it's supposed to do...it's "including" it... >> >> ---John Holmes... >> >> >> >>> -Original Message- >>> From: Tom Ray [mailto:[EMAIL PROTECTED]

Re: [PHP] Include question

2002-06-11 Thread Tom Ray
= 'yellow': Why is that? John Holmes wrote: >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

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 >

[PHP] Include question

2002-06-11 Thread Tom Ray
I'm trying to use the include function in some PHP scripts, but when I do include 'config.inc'; or include 'config.php; It returns all the information in the file when I look at my test php file (which calls the include) Anyone know why this is? -- PHP General Mailing List (http://www.php.ne

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

[PHP] Include question

2002-06-01 Thread John Holmes
Hi. When I've got code like the following: if($this) { include("this.html"); } elseif($that) { include("that.html"); } When are the includes() evaluated? Does the Zend engine do the includes first, pull in all of the code, then process it and produce output. Or does the engine start processing

RE: [PHP] include() question

2002-03-14 Thread Dave
4:20 PM >To: [EMAIL PROTECTED] >Subject: [PHP] include() question > > >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!! &

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 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 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 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 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 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
- Original Message - From: "Phil Schwarzmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 14, 2002 10:20 PM Subject: [PHP] include() question > Why doesn't this work... > > include("index.php?var='$var'); > > I want t

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 wo

[PHP] include() question

2002-03-14 Thread Phil Schwarzmann
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!!

[PHP] include question

2001-09-18 Thread Nikola Veber
Hi ! I'm using include() function to print html code nested in a function in the included file when a link is selected. I was wondering if the whole php file that is included gets loaded, or the server just sends the code from desired finction? Can I put more than one function full of html cod

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

[PHP] include question

2001-09-17 Thread Scott
Hello everyone- I am working on a project where a client can upload a template into a database table and manage it. The actual HTML code and dynamic code will be in the template as well. My hope is to build the page using an include that will echo the code to the page and then also fill in the

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,

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

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

2001-07-23 Thread Chris Cocuzzo
hey- I have a piece of code which does a simply INSERT query into an mp3 table. I've tested it out, and it completes the query, however there is one bug that I just have no clue about. this code does not work when i try to connect to the db: include("lib/db_config.php"); $connection = db_connec