Re: [PHP] SSI not working on PHP files with Apache

2010-09-02 Thread Per Jessen
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

Re: [PHP] SSI problem with php after 4.3.10 - 4.4.1 upgrade

2005-12-06 Thread kristina clair
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

[PHP] SSI problem with php after 4.3.10 - 4.4.1 upgrade

2005-12-05 Thread kristina clair
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

RE: [PHP] SSI problem with php after 4.3.10 - 4.4.1 upgrade

2005-12-05 Thread Jay Blanchard
[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

Re: [PHP] SSI problem with php after 4.3.10 - 4.4.1 upgrade

2005-12-05 Thread kristina clair
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

Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-29 Thread Richard Lynch
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

Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-29 Thread Richard Lynch
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

[PHP] Mixed PHP/SSI and environment variables

2005-10-28 Thread Christoph Freundl
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 -

Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-28 Thread Jochem Maas
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

Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-28 Thread Christoph Freundl
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

Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-28 Thread Jochem Maas
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

Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-28 Thread Christoph Freundl
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

Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-28 Thread Jochem Maas
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

[PHP] SSI and PHP

2004-10-13 Thread j kensler
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

Re: [PHP] SSI and PHP

2004-10-13 Thread Dan Joseph
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

Re: [PHP] SSI and query string variables to PHP

2004-04-25 Thread Evan Nemerson
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

Re: [PHP] SSI and query string variables to PHP

2004-04-25 Thread Burhan Khalid
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

Re: [PHP] SSI and query string variables to PHP

2004-04-25 Thread Tim Traver
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

Re: [PHP] SSI and query string variables to PHP

2004-04-25 Thread Evan Nemerson
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

Re: [PHP] SSI and query string variables to PHP

2004-04-25 Thread Tim Traver
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

[PHP] SSI and query string variables to PHP

2004-04-24 Thread Tim Traver
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

[PHP] SSI and query string variables to PHP

2004-04-24 Thread Tim Traver
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

[PHP] ssi problem

2003-02-21 Thread Hans Prins
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:

Re: [PHP] Re: Strange problem with PHP,SSI

2002-12-17 Thread sport4ever
[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] Strange problem with PHP,SSI

2002-12-14 Thread sport4ever
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

[PHP] Re: Strange problem with PHP,SSI

2002-12-14 Thread conbud
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

Re: [PHP] SSI

2001-12-26 Thread Alexander Skwar
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

Re: [PHP] PHP ssi

2001-12-25 Thread Joel Boonstra
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

Re: [PHP] SSI

2001-12-22 Thread Philip Olson
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

[PHP] PHP ssi

2001-12-21 Thread Nick
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

Re: [PHP] PHP ssi

2001-12-21 Thread Shane Wright
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

Re: [PHP] PHP ssi

2001-12-21 Thread Nick
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

Re: [PHP] PHP ssi

2001-12-21 Thread Philip Olson
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

[PHP] SSI

2001-12-21 Thread steph
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]

RE: [PHP] SSI

2001-10-29 Thread Patrick Dunford
, 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

[PHP] SSI

2001-10-28 Thread Gary
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]

Re: [PHP] SSI

2001-10-28 Thread Christian Dechery
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

Re: [PHP] SSI

2001-10-28 Thread Gary
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?

[PHP] PHP SSI in armony?

2001-07-21 Thread Seb Frost
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?

Re: [PHP] PHP SSI in armony?

2001-07-21 Thread Rasmus Lerdorf
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

Re: [PHP] PHP SSI in armony?

2001-07-21 Thread Jack Sasportas
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

[PHP] PHP SSI

2001-02-20 Thread Brandon Orther
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,

Re: [PHP] PHP SSI

2001-02-20 Thread Simon Garner
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?