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 Share on other sites More sharing options...
Jessica Posted March 3, 2013 Share Posted March 3, 2013 Uhm... yes. Quote Link to comment 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 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 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 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.