HighDots Forums  

Need example of how a phtml file works

alt.html.tags alt.html.tags


Discuss Need example of how a phtml file works in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mick
 
Posts: n/a

Default Need example of how a phtml file works - 05-06-2005 , 11:31 PM






Hello,
The server that I have my website on has a file extension of phtml and from
what I have hear that it is capable of having a php file inside a html file.
If I have two php files one example.php and the other
class.breadcrub.inc.php how does the phtml work.
thanks



Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: Need example of how a phtml file works - 05-07-2005 , 08:13 AM






mick wrote:

Quote:
The server that I have my website on has a file extension of phtml and
from what I have hear that it is capable of having a php file inside a
html file.
Sort of. The file extension isn't really relevent, its just a matter of
convention (and sometimes the server uses it to work out what to do with
the file).

With PHP you have a file of whatever type you like (usually HTML), and then
you can put bits of PHP anywhere you like inside it. PHP will read it, spit
out everything that comes in as it came in - except for the bits marked as
PHP - which it will process.

The .phtml extension is just the convention used for PHP version 2. PHP
version three switched to .php3, and PHP 4 and 5 use plain old .php.
(However different extensions could be used for any of them).

Quote:
If I have two php files one example.php and the other
class.breadcrub.inc.php how does the phtml work.
I suggest you RTFM. http://www.php.net/

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.