Re: PHP and the MIME type - an Apache question

From: Date: Sat, 10 Mar 2001 08:47:01 +0000
Subject: Re: PHP and the MIME type - an Apache question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-43292@lists.php.net to get a copy of this message
Ah, sorry. Here's the deal. Our company runs Unix on Sun Solaris (sorry, don't know the numbers of the top of my head) servers. We have Apache set up to go through every HTML file which is served, and look for instances of a particular command. For example, in our HTML files, we might have commands such as "<BOB-include>" or something. When an HTML file is served, Apache calls a Perl module called parser.cgi which goes through the file and executes the BOB commands; in this case, the BOB-include command might mean to include a certain file, sort of like the PHP include command. While this system is good for specific database needs, it doesn't allow a large degree of flexibility, which is why we're beginning to explore using PHP to create complex scripts. What I would like to do is be able to include the BOB commands in the output of a PHP script -- say, in a print() command -- and have those BOB commands executed. I hope this makes sense. I'm trying to be as clear as possible without giving away any sensitive company information. Richard At 07:51 PM 3/9/01 -0700, Kelly Corkill wrote:
I think it might help if you elaborated a little more on what you mean by "parse out all of my PHP scripts to run a particular CGI script". Apache has to be set up so know how to handle php (mime types), but it almost sounds like you're trying to execute a CGI in place of a php file? Also, if this IS a question related to apache what operating system? Makes a big diff.
-- http://www.mossroot.com/index.php AIM Handle: Buffalo2K e-mail: rscrawford@mossroot.com "When you lose the power to laugh at yourself, you lose the power to think straight." --Clarence Darrow

« previous php.general (#43292) next »