[PHP] Re: PHP and HTML Conventions
Thanks guys. That's answered my question for me. Speed is more important to me than anything as I'll be retrieving a heck of a lot of data for the users to view so I think I'll go with the HTML school and keep the PHP until absolutely needed. Thanks guys. -- - Michael Mason Arras People www.arraspeople.co.uk - Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. I just wondered if the general convention was to use entirely PHP and simply encase HTML TAGs within that or use a mix and simply use PHP TAGs when required. -- - Michael Mason Arras People www.arraspeople.co.uk - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and HTML Conventions
is there a HTML equivalent of the PHP include statement then...? -- - Michael Mason Arras People www.arraspeople.co.uk - Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. I just wondered if the general convention was to use entirely PHP and simply encase HTML TAGs within that or use a mix and simply use PHP TAGs when required. -- - Michael Mason Arras People www.arraspeople.co.uk - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and HTML Conventions
Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] is there a HTML equivalent of the PHP include statement then...? No, but you can include pure HTML with include()/include_once(). Just give the file a php extension: include_once 'pureHTML.php'; Maybe it works with any extension, haven't tested it. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and HTML Conventions
There is no need to use PHP to include HTML in HTML. You could also use the HTML server-side #include-command. Greetz, Arnout Torsten Roehr [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] is there a HTML equivalent of the PHP include statement then...? No, but you can include pure HTML with include()/include_once(). Just give the file a php extension: include_once 'pureHTML.php'; Maybe it works with any extension, haven't tested it. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and HTML Conventions
In article [EMAIL PROTECTED], Torsten Roehr wrote: Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] is there a HTML equivalent of the PHP include statement then...? No, but you can include pure HTML with include()/include_once(). Just give the file a php extension: include_once 'pureHTML.php'; readfile is in this case more appropriate imho -- Tim Van Wassenhove http://home.mysth.be/~timvw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP and HTML Conventions
Harlequin wrote: Thanks guys. That's answered my question for me. Speed is more important to me than anything as I'll be retrieving a heck of a lot of data for the users to view so I think I'll go with the HTML school and keep the PHP until absolutely needed. Install turck MMCache. Thanks guys. -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and HTML Conventions
I generally do all my program logic first then go to HTML. Once I start HTML, I drop in the PHP stuff where I need it. I think, but am not sure, that it also cuts down on processing time not having to parse out echo tags. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and HTML Conventions
Harlequin wrote: Hi all. I just wondered if the general convention was to use entirely PHP and simply encase HTML TAGs within that or use a mix and simply use PHP TAGs when required. It depends on the project, but when possible I prefer to have as much static content as possible for better performance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php