Thursday 10 April 2014

Php vs iframes

Posted by Саша 20:14, under | No comments


Php vs. iframes...? Php vs. iframes...?

yeah, i'm starting a website, but im having trouble trying to figure out how to code my layout. i don't want to have to code every page using tables or css unless there's a way to get iframes into the tables. ive heard lots about php, but it sounds sort of complicated.
what should i do?


Other Answers:




I wouldn't exactly say that PHP is "versus" iFrames... the two can be used together... PHP is just a script on the server that generates whatever code you want displayed in the visitor's web browser... whether that be HTML, iFrames, CSS, or even graphics images (like those auto-generated funny image letters that you have to type to get into Yahoo these days, for example).

As for an actual example of USING PHP... start building a regular HTML page, and where-ever you want your included files, do this...

<?php include('header.html') ?>
<p>Some text</p>
<?php include('footer.html') ?>

Save the file with the extension ".php" instead of ".htm" and a PHP-enabled web server will interpret and process all the instructions inside the PHP tags.

Simple enough, right? There are many more options of course, but it's nice that you don't have to bite off more than you can chew.









0 коммент.:

Post a Comment