Re: What's more common: CGI or module installation?

From: Date: Tue, 01 Aug 2000 01:49:04 +0000
Subject: Re: What's more common: CGI or module installation?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9336@lists.php.net to get a copy of this message
On 31 Jul, Murph wrote: > Hi. > > I want to be able to break out of an .html document and do some PHP stuff. > > I'd like to write something like: > > <!-- test.htm --> > <HTML> > <? echo "Hello, World!"; ?> > </HTML> > > My host server has the CGI version of PHP installed and so they say they > can't support what I want to do. I like those guys and I don't want to leave > them, especially if their installation is rather typical of most servers. > The book "Professional PHP Programming" highlights the pros and cons of each > and I can see the logic of their choice. > > How would you have proceeded in your installation? > Is there an alternative way to break out of an .html document? > > Thanks, > Murph At the least,l you should be able to call it as you would any cgi - something like http://your.host/path/to/php/path/to/test.htm Depending on the server and the cooperative nature of the ISP, it may also be possible to add .htaccess file(s) to your web structure to allow selected, or all, files to be parsed by the php cgi. Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#9336) next »