Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Strange problem with template parser
Old 04-09-2005, 08:20 PM Strange problem with template parser
Python's Avatar
Ultra Talker

Latest Blog Post:
A new site is launched
Posts: 374
Trades: 0
Ive created a template parser for an upcoming script im doing but Im having a problem with it...

http://www.pythonsblog.com/bb/index.php


As you can see that page isnt supposed to display like that... The template class works by replacing things like {VALUE} in a tpl file with something defined in a php file.

The template page is:

http://www.pythonsblog.com/bb/templates/index.tpl.php

I am using {URL-FHOME} which is set as 'index.php' in my script and the problem is that if there is a dot (.) in that filename then it messes up the page. If I change it to just 'indexphp' then the page shows up fine...

But the strange thing is that all of the other links can have dots in their filenames and i am doing it in the exact same way... It only seems to happen with this one particular link...

Any ideas?

Thanks
__________________

Please login or register to view this content. Registration is FREE

- Affordable web site design solutions
Python is offline
Reply With Quote
View Public Profile Visit Python's homepage!
 
 
Register now for full access!
Old 04-10-2005, 05:53 AM
ashly138's Avatar
Novice Talker

Posts: 9
Trades: 0
You coud all so use

<?php
$test = "Hello World!";
?>

and than
<? echo $test ?>

to display it on the page.

Thats all i know of it. :P
ashly138 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Strange problem with template parser
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.85278 seconds with 12 queries