Not at all unusual. Serve the pages as php (or .phtml, whatever
you tell your servers re: file extensions and mime type).

Then get acquainted with includes or require:

http://www.php.net/manual/en/function.include.php
http://www.php.net/manual/en/function.require.php


The server will "include" or "require" (big difference, one can be
conditional, one can not be looped etc) the relevant link/action on
presentation.

We use includes for repeated navigational elements, form insertion, option
lists, etc. Same can be true of executables within php.

On Sat, 10 Mar 2001, Richard S. Crawford wrote:

> Date: Sat, 10 Mar 2001 00:47:01 -0800
> From: Richard S. Crawford <[EMAIL PROTECTED]>
> To: Kelly Corkill <[EMAIL PROTECTED]>,
>      Richard S. Crawford <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP and the MIME type - an Apache question
> 
> 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
> 

Kelly

303-444-1671
Boulder, Colorado




-- 
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