On 9 May 2008, at 18:56, Bradley Stahl wrote:
Your code would essentially be "inserted" in the place where your
include
statement is called. Let's say that your in 'page.php' you had the
following code:
echo "I AM IN PAGE.PHP!";
and then in your script you have your code:
if (some variable)
Your code would essentially be "inserted" in the place where your include
statement is called. Let's say that your in 'page.php' you had the
following code:
echo "I AM IN PAGE.PHP!";
and then in your script you have your code:
if (some variable) {
include('page.php');
}
This would essenti
What is it that you are trying to accomplish? Normally no if statement is
needed for an include to take place unless a certain condition triggers the use
of the include.
Sent via BlackBerry from T-Mobile
-Original Message-
From: Matthew Gonzales <[EMAIL PROTECTED]>
Date: Fri, 09 May 200
indows@lists.php.net
Sent: Fri, 8 Feb 2008 21:17
Subject: RE: [PHP-WIN] include and warning: headers already sent by ..
Also make sure that one/some of the includes aren't trying to echo/print
something before it should. For ex: don't echo something before trying
to output header
Also make sure that one/some of the includes aren't trying to echo/print
something before it should. For ex: don't echo something before trying
to output header information like redirecting to another page.
Bill Bolte
-Original Message-
From: germana [mailto:[EMAIL PROTECTED]
Sent: Frid
Try to remove characters (like spaces) that can be found at the end of your php
scripts...
example:
where ### are any characters (even invisible), after the closing tag. There
should be nothing.
HTH, let me know
Piotr
germana <[EMAIL PROTECTED]> wrote: Hi there!!!
i just want to ask so
If you're loading PHP as a module under Apache and you have PHP in your
include file which you want to be processed, you also need to make sure
it's added to your list of file types that the engine processes PHP code
in. In your httpd.conf file you'd specify something like:
AddType applicat
Just one thing to add here:
My query is:
If i load the header as .HTM does it put the included file through the
PHP parser. I have the includes as .PHP at present. There is nothing php
in the header or footer as yet. I am looking at saving the server
some cycles by doing this.
Not sure exactly how
So just so I'm clear on your files...
Let's say you have a file, index.php. This file has an include statement for
'header.htm'.
Your question is does it matter if the header.htm is just HTML and does not contain
and PHP?
No it does not matter. But the URL must be pointed to the index.php PHP
TECTED]
> > virtual is an Apache specific function, and AFAIK they haven't put ASP
> > support into Apache yet. Let's hope they never do ;-)
> >
> > - Original Message -
> > From: "Dvdmandt" <[EMAIL PROTECTED]>
> > Newsgroups: php.windows
IL PROTECTED]>
> Newsgroups: php.windows
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, September 18, 2004 9:51 PM
> Subject: Re: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4
>
>
> > I'd lookup virtual()...
> >
> > --
> > // DvDmanDT
revor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Mikey" <[EMAIL PROTECTED]>
Sent: Tuesday, September 21, 2004 2:10 PM
Subject: RE: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4
I believe there's ChiliSoftASP or something that'll do ASP on A
I believe there's ChiliSoftASP or something that'll do ASP on Apache.
-TG
> -Original Message-
> From: Mikey [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 21, 2004 6:52 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] INCLUDE ASP does Not Work! for PH
ber 18, 2004 9:51 PM
Subject: Re: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4
> I'd lookup virtual()...
>
> --
> // DvDmanDT
> MSN: dvdmandt¤hotmail.com
> Mail: dvdmandt¤telia.com
> "Trevor Gryffyn" <[EMAIL PROTECTED]> skrev i meddelandet
>
I'd lookup virtual()...
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Trevor Gryffyn" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
The problem is that the web server looks at the file type and determines
what to do with it before it sends anything to the web
On Friday 17 September 2004 20:36, I wrote:
> include('http://wherever.example.com/poll.asp');
> ?>
A safer option if your asp page does not generate any php code you wish to
execute would be:
http://wherever.example.com/poll.asp');
?>
--
Phil Driscoll
--
PHP Windows Mailing List (http://w
On Thursday 16 September 2004 22:18, Raj Gopal wrote:
> Hi All,
>
> I have included a ASP file in a PHP script as follows
>
>
>
> and it does not work!
If you want poll.asp to execute and generate some output for inclusion in the
php script, you could do
http://wherever.example.com/poll.asp');
The problem is that the web server looks at the file type and determines
what to do with it before it sends anything to the web browser.
Your .PHP file is being sent to a PHP interpreter which outputs certain
things that get sent to the browser. What's going to happen in this
case is that ASP cod
Sorry !
It is part of the PHP sources in fact !
".;c:\\php4\\pear" Is the default include path when none is specified in
the php.ini file
I've mentionned the header file of the PHP sources where it is defined in
fact ;)
Eric
At 11:57 07/11/2003, [EMAIL PROTECTED] wrote:
Sorry, I don't unders
Hi !
A very simple reason:
D:\LOCAL\src\php-4.3.2\main\config.w32.h(16):
#define PHP_INCLUDE_PATH".;c:\\php4\\pear"
Eric
At 02:07 07/11/2003, you wrote:
Hi all,
I'm having a problem with my scripts in that I'm having the follwoing error
message when I try to include a file into
Browse through http://ww.php.net , search and read the documentation.
If you do that and search for "include", for instance, you will find
The documentation below also applies to require(). The two constructs are
identical in every way except how they handle failure. include() produces a
Warning wh
Hi David,
Can you explain me the same thing with some examples.. Pls.
Regards,
Rinku
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
if an include fails for whatever reason the script will continue executing
and just issue a warning.
If a require fails the script will throw an error and exit (it won't execute
the remainder of the script).
-Original Message-
From: Rinku Shivnani [mailto:[EMAIL PROTECTED]
Sent: 20 October
Make the action of the form "poll.php" instead of $PHP_SELF. $PHP_SELF
is the parent document.
Matt
|-Original Message-
|From: m1nt ch3w [mailto:[EMAIL PROTECTED]
|Sent: Saturday, February 22, 2003 3:27 AM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] include, phpself and inline frames
|
|
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 8:50 AM
To: Charles P. Killmer; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Include virtual?
I've wondered this before also but currently use;
include($_SERVER["DOCUMENT_ROOT"].'/'.'template.php
I've wondered this before also but currently use;
include($_SERVER["DOCUMENT_ROOT"].'/'.'template.php')
Be interested if there is an easier way!
.:Fran
-Original Message-
From: Charles P. Killmer [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2003 14:46
To: php-windows
Subject: [PHP-WIN]
At 23:01 2002-09-24 +0200, Wolfgang Schneider wrote:
>Hello,
>
>I have a question about a syntax I had not noticed until now and I
>could not find an explanation for the inclusion of the character "@"
>in from of function statment ...
>
>What's the difference between these:
>(1) @include("../lang/
The '@' character suppresses error messages that might occur.
Jim
---Original Message---
From: Wolfgang Schneider
Date: Tuesday, September 24, 2002 02:04:06 PM
To: php-windows
Subject: [PHP-WIN] @include ...
Hello,
I have a question about a syntax I had not noticed un
So far as I know, Linux etc does not have any problem with a statement such
as include("http://www.yahoo.com";);
However it is fairly simple to work around in Windows, I do it all the time.
The following code will produce the same output:
http://www.yahoo.com","r";);
while(!feof($fp) && $fp) {
I doubt... (i've no reason to believe that it doesn't work, but if it
doesn't i would assume it to be a bug in windows
filesystem->networksystem layer)...
Anyway, the better way is to create a distributed file system and/or map
the share as if it was a directory in one of the WS machine...
Th
2 things:
1. Your webserver should be running as IUSR_something which as far as I
know, may have no network access, or permissions by default. There was a
like topic discussed recently on this list. I don't use IIS (YAY!) so I'm
not really sure. Check your permissions. Then double check them.
2.
Check your PHP.INI file for settings related to automatic escaping of
characters. And, uh, you say it's a forward slash like '/', but are you
sure they aren't backslashes like '\'? I've never heard of forward slashes
getting added. Are you positive that the text files don't have the
slashes
Have u tried using "soap"
tee hee hee (sorry...couldn't resist!)
Ignatius
- Original Message -
From: "Shrock, Court" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, Januar
: [PHP-WIN] Include()
Ross:
No, it's not what I mean :)
Let say that you have a PHP class that I like on your site, for free or a
bundle of pounds, you give me permission to use this class from my site to
your site (include it on my site) without even giving me your source.
Anyway, I know ther
to do that...
A+
Alain
-Original Message-
From: Ross Fleming [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 10:08 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Include()
Can I just add that this is a feature that already exists... it's called
FTP!! :
other [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 9:24 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP-WIN] Include()
If you think it over that could be a real security hazard.
If I have a phpdoc that opens sqlconnections at server A and includes that
doc over at server B then
Alain,
The PHP engine can only process php code in files on your local
filesystem(*). It just so happens that PHP is smart enough to realize that
if a file is not entirely PHP code, the rest must be meant for output to the
client (which can be ANY device, not just a human behind a browser). When
that it isn't reply to: listadres)
> -Original Message-
> From: alain samoun [mailto:[EMAIL PROTECTED]]
> Sent: den 22 januari 2002 03:52
> To: Shrock, Court; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Include()
>
>
> Humm, I do not know if I understand you.
I'm not using it to include remote php files as I assumed it would still
onlu be able to process the file after it was parsed by the remote system.
I do however need to include remote html files which should not be affected
by this problem.
Hippie.
At 04:38 PM 1/21/02 -0800, you wrote:
>Yes,
it?
A+
Alain
-Original Message-
From: Shrock, Court [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 21, 2002 4:38 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Include()
Yes, it works on Linux/Apache. But the results are not what you might
expect. When one normally uses the in
Yes, it works on Linux/Apache. But the results are not what you might
expect. When one normally uses the include statement, you intend to process
some php file, not the output from such a file.
For example:
nfo.php contains, located at http://www.myserver.com/nfo.php :
--BEGIN FILE
You are right, it doesn't seem to work with windows, I don't know if it
works with *nix either?
But you can include your file as:
include("http://whatever/yourfile.php";);
A+
Alain
-Original Message-
From: John (News) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 21, 2002 3:34 PM
To:
You should use your real e-mail as your return address so I can respond to
you privately. Some messages aren't deserving of a message to the whole
list. This is a recommendation to everyone on the list because it's
certainly not the first time that I've wanted to give someone private
advice
ow how did you help me.
Marek.
- Original Message -
From: Ross Fleming <[EMAIL PROTECTED]>
Newsgroups: php.windows
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 8:11 PM
Subject: RE: [PHP-WIN] include("remote host") under w2k problem
> I would assume,
I would assume, that because linux is built around networking, making a
reference to http://whatever would tell linux to look on the internet for
the file. window isn't built the same way, so it doesn't know to look
beyond it's filing system. As to a solution, I'm not sure.
I'd look into fopen
>From the manual
Note: You can't use remote files in include() and require() statements on
Windows.
HTH
Ignatius
- Original Message -
From: "Vasu Gokaraju" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 12:58 AM
Subject: [PHP-WIN] include()ing the remote file
Sorry, should have mentioned -- if you are doing it on windows, then try
something like this:
include(getcwd().'\\path\\to\\file\\test.php');
-Mike
At 01:37 PM 5/23/01 +0700, you wrote:
>help...!!
>
>ilustration:
>i got trouble with include on the virtual directory...
>
>a myfile.php -->> incl
Try... include(getcwd().'/path/to/file/test.php');
-Mike
At 01:37 PM 5/23/01 +0700, you wrote:
>help...!!
>
>ilustration:
>i got trouble with include on the virtual directory...
>
>a myfile.php -->> include file on directory includes/test.php
>
>why it shouldn't work?. when i moved my file test.
You need to specify the full path (unless you're using the include_dir
setting in php.ini).
ie. include ("d:/inetpub/wwwroot/project/includes/test.php");
OR
include (get_env("DOCUMENT_ROOT")."/includes/test.php");
Ignatius Teo
Project Manager, Internet Access Services
Information Technolog
Hello mjrobey,
try to replace "\" with "/":
include_path = "d:/foxserv/www/include;."
mmc> Greetings,
mmc> I'm running Apache with the PHP mod under Windows 2000, but I seem to have
mmc> a recurring problem with includes. Every time I try to view a page with an
mmc> include() statement, it ret
On Thu, 17 May 2001 11:30:59 -0500, you wrote:
On second thought (see my previous note), how exactly are you typing your
include() in code? I realized after posting previously, that include()
automatically traverses the path(s) set by the include_path variable, so as
long as that is set up proper
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 12:30 PM
Subject: [PHP-WIN] include paths
Try typing the include() line in your code like this:
include($include_path."\SomeFilenameToInclude");
Alan
> Greetings,
>
> I'm running Apac
my include looks like
;
; Paths and Directories ;
;
include_path
=\apache\includes
do you have the quotes & ; & . in yours??
[EMAIL PROTECTED] wrote:
> Greetings,
>
> I'm running Apache with the PHP mod under Windows 2000, but I seem to h
On 20 Apr 2001 14:04:00 -0700, Olivier Botineau <[EMAIL PROTECTED]> wrote:
>Good evening all,
>do you know if its possible to give an absolute path instead of a relative path for
>include:
>include( '../../menu.php' ); is OK
>incude( '/inculde/menu.php' ); is Not OK
That's the
This is extremely unfortunate as I don't know of a way to do this either. I
do however have a workaround that's not too tedious.
Insert the following code into the very top of all of your documents:
$GLOBALS["DOCUMENT_ROOT"] =
preg_replace("/wwwroot.*$/i","wwwroot",$PATH_TRANSLATED);
This assum
I'd say got for Apache. If not that, then download the latest IIS4
from the internet. I tried to run PHP4 on IIS3 and I battled for
a week to get it going. Once I installed IIS4 it ran like a dream.
> --
> From: Matt Williams[SMTP:[EMAIL PROTECTED]]
> Sent: Friday, Februar
56 matches
Mail list logo