Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2003022

[PHP] 404 and parsing templates From: Richard Baskett (php <email protected>)
Date: 02/27/03

Ok I created an engine, an extremely simple engine that parses a template
file and then according to whatever page and language it is on it calls that
template.

Now the problem is that, well let me give you an example:

I have a page called index.php which only has an include_once function in
it, which includes the engine. This engine checks the name of the file,
then checks a cookie and/or the browser prefs for the language then parses
the template with the main table cell of the template as the included file
/en/index.inc. So if you went to products.php it would parse it and grab
/en/products.inc.. the way I see it is that I really do not need those .php
files and could let my 404 page parse the files as needed, but there should
be a better way of doing this... Each one of my .php files are the exact
same thing...

Cheers!

Rick

"Only a life lived for others is worth living." - Albert Einstein

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php