Forwarded to list, in case others would like to add their wisdom/benefits of their experience. =dn
----- Original Message ----- From: "DL Neil" <[EMAIL PROTECTED]> To: "Lindsay Gillam" <[EMAIL PROTECTED]> Sent: 25 February 2002 13:27 Subject: Re: [PHP-WIN] Beginner's Teething Problems > Lindsay, > > > Thanks for your help. I was just trying to access it from the browser on my > > local machine as you suspected. I have a web server setup here but didn't > > realise you needed to upload the files for them to function correctly. I > > will give that a try now. Just out of interest from what I have read the > > best way of doing it is using .php files instead of enbedding the php in the > > middle of .html files. If I want to code a counter or guestbook anything > > like that where it would sit as a page in a webside already created. I am > > assuming you would have to enbed the code in the html?? > > > I would use .php files and 'embed' the HTML within them. Remember that the PHP >processor's task is simply to > take the HTML and PHP 'page'/file as input, and to translate the lot into a single >web page (HTML) as output - > which is then fed back to the web server for serving to the client, just as if it >had been picked up from a > .htm[l] file. > > You can use any filetype that you like - provided the server knows to handle the >file's data to the PHP > processor. If you never use 'pure HTML' files then you could specify that files with >a file type of .htm[l] be > forwarded to the PHP processor as well, but I can't recommend this course of action >because at the practical > level any page which didn't need PHP's attentions would incur an unnecessary >processing/serving delay and why > call it HTML if it is (at least in part) PHP? > > There is a quite a bit of discussion here on the list (check the archives when >you're ready) about the > advisability of keeping HTML code separated from the PHP elements, the use of >template systems, and so on - so > the topic is quite important! > > Regards, > =dn > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php