Relative path in template, need clarification...
Posted: Sun Aug 19, 2007 8:05 pm
I have a template system I've been working on and I've hit some sort of weird issue.
Here are my paths...
/public_html/templatefiles/
/public_html/gallery/matrix/
The template files load 4 chunks of the page (two parts head, two parts body), along with the content (which is stored in "templatefiles" directory.
I'm working with a content file in the template directory on a gallery page (template is tpl extension and PHP executes fine both locally/live servers). I have a PHP includes inside of the tpl file in the template directory which is the page is requested with an image query (example.php?image=0005) it will load the fifth image instead of the first image of the gallery (allowing direct image URLs to help end hotlinking attempts). The problem is that Firefox keeps timing out and I'm not PHP-smart-enough to know why.
Suggestions?
Here are my paths...
/public_html/templatefiles/
/public_html/gallery/matrix/
The template files load 4 chunks of the page (two parts head, two parts body), along with the content (which is stored in "templatefiles" directory.
I'm working with a content file in the template directory on a gallery page (template is tpl extension and PHP executes fine both locally/live servers). I have a PHP includes inside of the tpl file in the template directory which is the page is requested with an image query (example.php?image=0005) it will load the fifth image instead of the first image of the gallery (allowing direct image URLs to help end hotlinking attempts). The problem is that Firefox keeps timing out and I'm not PHP-smart-enough to know why.
Suggestions?