Re: SSI\CGI + PHP

From: Date: Mon, 27 Nov 2000 12:30:35 +0000
Subject: Re: SSI\CGI + PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27350@lists.php.net to get a copy of this message
Hi! 1) you need to name your cgi's .php ? What type of content the have? Perl, Binary, ..? Why? If you need you can add in the apacheconfig what you want with AddHandler cgi-script .php 2) use virtual (string filename) http://www.php.net/manual/function.virtual.php or just read it into a variable: $fp=fopen($myfile,"r"); $contents=fread($fp,filesize($myfile)); print $content; fclose($fp); regards Folke -- Folke Ashberg Stage Internet Services GmbH Technical Development folke@fanstage.de folke@fanstage.de | Tel: +49 89 454591-77 | Fax: +49 89 454591-71 Kreillerstr. 21 | 81673 Munich | Germany | www.fanstage.de On Mon, 27 Nov 2000 techzeus@pacific.net.sg wrote: > Hi there, > > Got a question, > > 1) Can SSI And CGI work under a .php extension > > 2) I need to include a text from a file, how can I do it in PHP if I don't use SSI ? > > > David Chua, > CEO, Frozened.com > PAGN.NET >

« previous php.general (#27350) next »