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