Michael Alaimo wrote:
Does special configuration have to take place with PHP to let apache
process server side include files that are HTML documents?
PHP doesn't care, but you will need to configure apache to do both SSI
and PHP processing.
--
Per Jessen, Zürich (17.8°C)
--
PHP
In case anyone encounters this problem - using the latest 4.4.x
snapshot fixed the problem for me (thanks, developers!).
Kristina
On 12/5/05, kristina clair [EMAIL PROTECTED] wrote:
On 12/5/05, Jay Blanchard [EMAIL PROTECTED] wrote:
[snip]
I'm having a problem with certain SSI files which
Hello,
I'm having a problem with certain SSI files which include php scripts
after upgrding php from 4.3.10 to 4.4.1.
The includes look like:
!--#include file=eventsdb.php?ID=81fld=2 --
In some cases, the page output is different with 4.4.1 than it is with
4.3.10. In the worst cases, Apache
[snip]
I'm having a problem with certain SSI files which include php scripts
after upgrding php from 4.3.10 to 4.4.1.
The includes look like:
!--#include file=eventsdb.php?ID=81fld=2 --
In some cases, the page output is different with 4.4.1 than it is with
4.3.10. In the worst cases, Apache
On 12/5/05, Jay Blanchard [EMAIL PROTECTED] wrote:
[snip]
I'm having a problem with certain SSI files which include php scripts
after upgrding php from 4.3.10 to 4.4.1.
The includes look like:
!--#include file=eventsdb.php?ID=81fld=2 --
In some cases, the page output is different with 4.4.1
On Thu, October 27, 2005 3:43 am, Christoph Freundl wrote:
I have a problem with the persistence of environment variables when
mixing PHP and SSI (Apache) and I am not sure if I just made an error
or if this approach cannot work at all.
So please consider the following files:
I *believe* that
On Fri, October 28, 2005 9:36 am, Christoph Freundl wrote:
Perhaps I return to what I primarily intended to ask: is it really the
wanted behaviour of virtual() that changes that are made by the
included file do not influence the environment of the including file?
That is most definitely a
Hello,
I have a problem with the persistence of environment variables when
mixing PHP and SSI (Apache) and I am not sure if I just made an error
or if this approach cannot work at all.
So please consider the following files:
setvar.shtml
-
Christoph Freundl wrote:
Hello,
I have a problem with the persistence of environment variables when
mixing PHP and SSI (Apache) and I am not sure if I just made an error
or if this approach cannot work at all.
So please consider the following files:
setvar.shtml
Am Freitag, 28. Oktober 2005 13:22 schrieb Jochem Maas:
info.php
-
?php
virtual( setvar.shtml );
have yuou tried include/require here instead of virtual()
I imagine that the env of the subprocess wouldn't affect
the env of the parent
Christoph Freundl wrote:
Am Freitag, 28. Oktober 2005 13:22 schrieb Jochem Maas:
info.php
-
?php
virtual( setvar.shtml );
have yuou tried include/require here instead of virtual()
I imagine that the env of the subprocess wouldn't affect
the
Am Freitag, 28. Oktober 2005 13:42 schrieb Jochem Maas:
ok, and if you stick the following in 1 file and call it?:
!--#set var=myvar value=myval --
?php echo apache_getenv( myvar ); ?
... just thinking out loud here.
Ok, I tried this by configuring Apache such that .php-files are also
Christoph Freundl wrote:
Am Freitag, 28. Oktober 2005 13:42 schrieb Jochem Maas:
ok, and if you stick the following in 1 file and call it?:
!--#set var=myvar value=myval --
?php echo apache_getenv( myvar ); ?
... just thinking out loud here.
I just looked at apache_getenv():
string
I've got to use some server side includes (and some SETs).
And PHP is set up as a CGI program.
If I include the php page from the .shtml page, the php page cannot
receive queries.
.php files are not set up to process these includes.
And of course virtual(), etc. do not work because PHP is set
I've got to use some server side includes (and some SETs).
And PHP is set up as a CGI program.
If I include the php page from the .shtml page, the php page cannot
receive queries.
.php files are not set up to process these includes.
And of course virtual(), etc. do not work because PHP
On Saturday 24 April 2004 10:29 pm, Tim Traver wrote:
Hi all,
ok, this may be a dumb question, but I have a page that has server side
includes that include a php script like this :
!--#include virtual=schedule.php --
works fine, except the script doesn't appear to receive any of the query
Tim Traver wrote:
Hi all,
ok, this may be a dumb question, but I have a page that has server side
includes that include a php script like this :
Please send a new message if you have a new question, and do not reply
to a thread and change the subject. It breaks the conversation flow.
Where is
Yes, I mean that php gets the server information for the request, but it
doesn't get the QUERY_STRING variable. But it does get the
UNESCAPED_QUERY_STRING variable...wierd, huh ?
It might be that apache isn't sending that variable to php from an included
file...not sure...
That's why I'm
On Sunday 25 April 2004 09:56 am, Tim Traver wrote:
Yes, I mean that php gets the server information for the request, but it
doesn't get the QUERY_STRING variable. But it does get the
UNESCAPED_QUERY_STRING variable...wierd, huh ?
Yeah, especially since I've never heard of
Hmmm after doing more research on it, it appears that this server
variable only appears in SSI documents.
And I didn't quote the variable correctly, its QUERY_STRING_UNESCAPED
I guess that SSI does not send through the querystring to the included script.
I might have to just use the
Hi all,
ok, this may be a dumb question, but I have a page that has server side
includes that include a php script like this :
!--#include virtual=schedule.php --
works fine, except the script doesn't appear to receive any of the query
string information if that page has a query string on
Hi all,
ok, this may be a dumb question, but I have a page that has server side
includes that include a php script like this :
!--#include virtual=schedule.php --
works fine, except the script doesn't appear to receive any of the query
string information if that page has a query string on
Could anyone please shed some light on the following issue?
I have a problem with including a test.php into a test.shtml and passing
a variable to the test.shtml which should be available and processed in
the test.php
the test.php document includes the following:
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, December 15, 2002 10:39 AM
Subject: [PHP] Re: Strange problem with PHP,SSI
Sport4ever wrote:
PHP version: 4.2.1
OS: RedHat Linux 8
Apache version: 2.0
My problem is that I can't execute more than one (SSI include) on my
website JUST
PHP version: 4.2.1
OS: RedHat Linux 8
Apache version: 2.0
My problem is that I can't execute more than one (SSI include) on my website JUST for
PHP file.. so there is NO problems at all if I include HTML or SHTML files.
Anyway, if I include 2 PHP files into any page, the first INCLUDE statement
Sport4ever wrote:
PHP version: 4.2.1
OS: RedHat Linux 8
Apache version: 2.0
My problem is that I can't execute more than one (SSI include) on my website JUST for PHP file.. so there is NO problems at all if I include HTML or SHTML files.
Anyway, if I include 2 PHP files into any page, the first
So sprach »[EMAIL PROTECTED]« am 2001-12-21 um 15:12:54 -0800 :
if you have a PHP page and you want to use SSI in it... is there a special
method?
Yes - scrap it. It's neither senseful nor possible.
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to
No, this isnt possible - but the constructs in PHP should allow you to
do anything you can do with SSI just as easily.
This may be possible with Apache 2.0 and greater, once it's in stable
release (perhaps it is already). It would allow the server to perform
multiple passes on documents, thus
Things you can do:
a) rewrite SSI as PHP
b) rewrite SSI as PHP
c) try using virtual()
d) include them via http, like with file() or include() or fopen()
(a) and (b) are preferred, (c) will work as will (d) and most likely [e-z]
:) Also, search through the archives for other advice on the
Is it possible to have a .php file parse SSI's? I tried adding .php as a
SSI file but it overwrote the php type, and wouldn't display PHP. And
vice-versa. If not, i'd hafta write a php script that executes a program,
and take the output from that program and parse it, which I don't know how
to
Hi Nick,
No, this isnt possible - but the constructs in PHP should allow you to do
anything you can do with SSI just as easily.
--
Shane
On Friday 21 Dec 2001 5:45 pm, Nick wrote:
Is it possible to have a .php file parse SSI's? I tried adding .php as a
SSI file but it overwrote the php
it. Thanks :)
-Nick
From: Shane Wright [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Fri, 21 Dec 2001 17:54:42 +
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP ssi
Hi Nick,
No, this isnt possible - but the constructs in PHP should allow you to do
anything you can do with SSI just
17:54:42 +
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP ssi
Hi Nick,
No, this isnt possible - but the constructs in PHP should allow you to do
anything you can do with SSI just as easily.
--
Shane
On Friday 21 Dec 2001 5:45 pm, Nick wrote:
Is it possible to have
if you have a PHP page and you want to use SSI in it... is there a special
method?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
, Christchurch, NZ
http://pdunford.godzone.net.nz/
http://www.trainweb.org/ferrymead/
-Original Message-
From: Gary [mailto:[EMAIL PROTECTED]]
Sent: Monday, 29 October 2001 14:59
To: [EMAIL PROTECTED]
Subject: Re: [PHP] SSI
Yes I do, it is to run a pre-exiting program. I figured it out. I
How do you get a SSI to work on a php page?
TIA
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
At 19:04 28/10/01 -0500, Gary wrote:
How do you get a SSI to work on a php page?
you don't need SSI if you're running PHP... just use include()...
_
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http://www.webstyle.com.br
. . http://www.tanamesa.com.br
Yes I do, it is to run a pre-exiting program. I figured it out. I was
uing double quotes in the ssi and excaping them when echoing. I should
of been using single quotes.
Thanks
Gary
Christian Dechery wrote:
At 19:04 28/10/01 -0500, Gary wrote:
How do you get a SSI to work on a php page?
I want to use both PHP and SSI on the same page. My server requires that
SSI files are .shtml. If I set it to also treat .shtml files as php files
(like I have done with .htm) then what will happen? Will it get parsed
first for php and then for ssi, or the other way round? Or puke completely?
I want to use both PHP and SSI on the same page. My server requires that
SSI files are .shtml. If I set it to also treat .shtml files as php files
(like I have done with .htm) then what will happen? Will it get parsed
first for php and then for ssi, or the other way round? Or puke
The answer is up to you.
You make the shtml generate the php, OR the php generate the shtml...
My guess is probably php generates the shtml, and the reference to
it...
I think that should work...
Seb Frost wrote:
I want to use both PHP and SSI on the same page. My server requires that
SSI
Hello,
I am writing a banner rotation script and want to use Server Side include.
When I try to include from any server other than the one that php script is
on I get an error,
Error: [an error occurred while processing this directive]
Any Ideas?
Thank you,
From: "Brandon Orther" [EMAIL PROTECTED]
Hello,
I am writing a banner rotation script and want to use Server Side include.
When I try to include from any server other than the one that php script
is
on I get an error,
Error: [an error occurred while processing this directive]
Any Ideas?
43 matches
Mail list logo