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: [EMAIL PROTECTED]
"When you lose the power to laugh at yourself, you lose the power to think 
straight."  --Clarence Darrow


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to