Re: [PHP] include question

2009-03-07 Thread Nathan Rixham
Daniel Brown wrote: On Fri, Mar 6, 2009 at 08:53, Stuart stut...@gmail.com 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,

Re: [PHP] include question

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 08:37, PJ af.gour...@videotron.ca 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

Re: [PHP] include question

2009-03-06 Thread Stuart
2009/3/6 Daniel Brown danbr...@php.net On Fri, Mar 6, 2009 at 08:37, PJ af.gour...@videotron.ca 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

Re: [PHP] include question

2009-03-06 Thread Daniel Brown
On Fri, Mar 6, 2009 at 08:53, Stuart stut...@gmail.com 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

Re: [PHP] include question

2009-03-06 Thread PJ
Daniel Brown wrote: On Fri, Mar 6, 2009 at 08:53, Stuart stut...@gmail.com 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

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

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

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 php-general@lists.php.net Sent: Monday, May 08, 2006 11:05 AM Subject: RE: [PHP] include

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 php-general@lists.php.net Sent: Monday, May 08, 2006 11:05 AM Subject: RE: [PHP] include() question [snip] I am including a page from another

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:

Re: [PHP] include() question

2006-05-08 Thread PHP
: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 might go t*ts up and you'll

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

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

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!BR; } in verify_faculty_info.php,

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: !--#include virtual=

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: !--#include virtual= /cgi-bin/something.pl?data=something-- [/snip] exec(/cgi-bin/something.pl?data=something); HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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: !--#include virtual= /cgi-bin/something.pl?data=something-- You can't use SSI in PHP. PHP is not SSI. You can do something similar though, www.php.net/virtual. -- The

Re: [PHP] Include Question

2003-03-27 Thread Beauford.2002
, 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) { $message = $enter_info; include (login.php); exit

RE: [PHP] Include Question

2003-03-27 Thread Jennifer Goodie
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

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: img src=file.gif use: img src='c:\project\htmls\file.gif' Is something like that possible? Otherwise at the very least you should use: img src='htmls\file.gif' HTH -Brad Ryan wrote: Hello all, I'm have a PHP

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

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: img src=file.gif use: img src='c:\project\htmls\file.gif' Is something like that possible? ??? forget this... this will only work on some browsers and as long as you keep

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: a href=link.php?foo=bar.php On the link.php page, I have this simple code: ?php $job = $_GET['foo']; echo $job; // for error checking include 'path/to/$job'; ? The

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 a href=link.php?foo=bar.php R On the link.php page, I have this simple code: R ?php R $job = $_GET['foo']; R echo $job; // for error checking R include 'path/to/$job'; ? R The 'echo

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, you wrote: R

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 a user to

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: ?php $var = 'foo'; include 'somefile.php'; ? somefile.php now has access to $var. This is talked about in the manual too:

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. If you are

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 some

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 ? $apple = 'green'; $pear = 'yellow'; ? callfile.php ? include 'somefile.php'; echo

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

RE: [PHP] Include question

2002-06-11 Thread Peter
: Wednesday, 12 June 2002 11:36 AM To: [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

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

Re: [PHP] Include question

2002-06-02 Thread Bogdan Stancescu
into memory when it's needed? ---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 Your second guess. But you could've tested it easily

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

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

RE: [PHP] Include question

2002-06-01 Thread John Holmes
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've got code like the following: if($this) { include(this.html); } elseif

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

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 -

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

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
- 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: [PHP] include() question On Thursday, March 14, 2002, at 04:34 PM, Edward

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
] 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 Bilderbeek - Bean IT wrote: you can't use a variable as a parameter for the included file... because include does

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

Re: [PHP] include() question

2002-03-14 Thread Erik Price
, 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 Bilderbeek - Bean IT wrote: you can't use a variable as a parameter for the included file... because include does nothing else then putting

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 and

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 ? echo $var;

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 fhkhfsakuhfewhehfaalkuhfwe[DATA1]/lkuhfwe and do a str replace [DATA1] parts -- database content. Chris- YOU ROCK! Thank you for the thought starter, I

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

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

2001-07-23 Thread Chris Cocuzzo
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 be below temp directory. If you

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

2001-07-23 Thread Gonyou, Austin
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, the lib directory has to be below temp directory. If you