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
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()
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
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.
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
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
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
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
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
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
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
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
[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
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
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
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
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
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
[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
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
;[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) {
[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
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
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:
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,
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
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
> 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.
> 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
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
> 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
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
: [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
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
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':
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
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.
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
>>
>>
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
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
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
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
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
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
>
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
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: [
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
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
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.
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
]
> 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,
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
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
53 matches
Mail list logo