Bishvabis Posted March 3, 2013 Share Posted March 3, 2013 is that possible to design a static web page through php? Quote Link to comment https://forums.phpfreaks.com/topic/275186-design-static-page-in-php-is-possible/ Share on other sites More sharing options...
Jessica Posted March 3, 2013 Share Posted March 3, 2013 Uhm... yes. Quote Link to comment https://forums.phpfreaks.com/topic/275186-design-static-page-in-php-is-possible/#findComment-1416277 Share on other sites More sharing options...
haku Posted March 4, 2013 Share Posted March 4, 2013 <?php echo '<html><head><title>Static HTML page</title></head><body>This is the body</body></html>'; ?>There you go. Static HTML page in PHP. Or, you could even do this: Quote Link to comment https://forums.phpfreaks.com/topic/275186-design-static-page-in-php-is-possible/#findComment-1416353 Share on other sites More sharing options...
Christian F. Posted March 4, 2013 Share Posted March 4, 2013 This begs the question "why would you want do that?" Just use a plain HTML file, as that is what you'd get at the end of the day. Using PHP to output static HTML is like going to a garage and ask them to build you a Hyundai, exactly the same as the factory made ones. Instead of just going to the dealership, and pay a lot less to get it a lot faster. Quote Link to comment https://forums.phpfreaks.com/topic/275186-design-static-page-in-php-is-possible/#findComment-1416538 Share on other sites More sharing options...
Barand Posted March 4, 2013 Share Posted March 4, 2013 A PHP file can contain just HTML code, it doesn't have to contain any PHP code all. But, as Christian said, you may as well just use a .HTML file in the first place. Quote Link to comment https://forums.phpfreaks.com/topic/275186-design-static-page-in-php-is-possible/#findComment-1416567 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.