Reply to Re: [PHP] Including SSI in your PHP scripts

Your name:

Reply:


Posted by Richard Lynch on 05/17/05 04:22

On Mon, May 16, 2005 2:09 pm, Brian said:
> Is there any possible way to use my sitewide include files which have SSI
> in
> them in a PHP script, such as phpBB, with PHP installed as a cgi? I see
> there is a virtual() function which is intended to mimick apache's virtual
> include, however it does not work as a CGI.

Perhaps if you do:

<?php require 'http://example.com/yourfile_withssi.shtml';?>

It will chew up an extra HTTP connection on each require, but it should work.

You'd be better off in the long run to re-code your SSI as PHP. There
usually isn't anything that tricky in SSI that you can't do in PHP in
minutes of re-coding...

--
Like Music?
http://l-i-e.com/artists.htm

[Back to original 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

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