Re: Adding a new feature.

"Paul E. Ross" <[email protected]>
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
Scott Savarese wrote:
> Paul E. Ross said:
> 
>>I have this already at my site.
> 
> 
>>       if (file_exists("$Current_Directory/$page") && $handle =
>>fopen("$Current_D
>>irectory/$page", 'r'))
>>       {
>>          $temp = fread($handle,4096);
> 
> 
> So how is this working? 

Works fine, except for index pages which don't show up in $REQUEST_URL. 
  For them, the user sees the default title.

> You are setting header.php as the handler for the request? 
> So that every request comes through header.php which does the
> reading and parsing? 

Correct.  That way, I can produce a header and menu based on the 
directory tree of my website that complies with "Corporate Identity" and 
the Content Owner can concentrate on the content of the page.

> What happens to CGI generated text/html, which is why
> I like mod_layout which acts as an output filter in apache2.

We use VERY few CGI scripts.  Most dynamic web pages are php with MySQL. 
  In fact, the only cgi scripts that we have are called from within php 
pages.
Haven't moved to apache 2 yet.  Still waiting on packages we use to 
catch up and stabilize.

> 
> Thanks,
> Scott`
> 
> 
> _______________________________________________
> Mod_layout mailing list
> [email protected]
> http://lists.tangent.org/mailman/listinfo/mod_layout
> 
> 


-- 
Paul Ross
Senior Software Engineer
281.280.2997
281.280.4138 fax
713.736.9581 pager
[email protected]
http://www.shibumi.org/eoti.htm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.