You are here: Re: Directory / File Indexing - Structure Question « PHP Programming Language « IT news, forums, messages
Re: Directory / File Indexing - Structure Question

Posted by Jeff Gaines on 10/15/07 21:01

On 15/10/2007 in message <ff079b02q4p@drn.newsguy.com> Tom wrote:

>I think most PHP is setup on teh web server so all .php files are parsed
>by PHP.
>IF the file extension is .html then it would be a plain HTML file that us
>sent
>as-is. If you didn't need any PHP code in the index pages you are creating
>in
>those directories, it would make sense to simply use the .html version .

Many thanks Captain P and Tom, I will investigate the header() function.

In the meantime I have taken a slightly different approach. I have
book-marked CreateIndexFiles.php as my entry point to my notes files. The
script then creates an index.html file in each sub-directory and echoes a
link to each of those index files. This means if I add/delete a directory
or file then I just navigate to the bookmark, hit Ctrl+F5 and it gets
re-built automagically.

If anybody has any other suggestions as to how to achieve this I would be
happy to try them as part of my learning process :-)

--
Jeff Gaines Damerham Hampshire UK
There are 3 types of people in this world. Those who can count, and those
who can't.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация