You are here: Re: [PHP] Mixed PHP/SSI and environment variables « PHP « IT news, forums, messages
Re: [PHP] Mixed PHP/SSI and environment variables

Posted by Jochem Maas on 10/05/32 11:30

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 env of the parent process - i.e. to me it makes sense
>>if you say the env var in the subprocess is not available in
>>the parent process.
>>
>>
>>> echo apache_getenv( "myvar" );
>>>?>
>>>-------------------------------------------------
>
>
> Nope, both include and require result that the content of setvar.shtml
> shows up literally in the output without the SSI having been processed
> by Apache.


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.

>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация