PHP IN HTML
PHP IN HTML This Article , will let you know how to include a php file inside a html file , using inline floating frames.
AI
AIサマリー: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
ソースコード
<table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><font color="#0000FF" size="5">PHP IN HTML</font></td> </tr> <tr> <td width="100%">This Article , will let you know how to include a php file inside a html file <br> seamlessly, using inline floating frames.<br> Iframes are simple floating frames (HTML TAG) which can be placed at any required location on a html file. Iframe are said to be faster rendering, less memory, and faster scrolling. They can be stacked over other inline floating frames, Iframes can contain transparent content.<br> Iframe has an important attribute called as src which acquires the filename to load inside the Iframe, using this attribute you can specify the PHP file to load inside the IFRAME,<br> Which will resemble as if ,a HTML file were executed .<br> This technique is applied in many area , one of which is a news portal , which usually generates a static html file as home page and other content pages to save the bandwidth and cope with the heavy load . There is a location where they keep updating the Breaking news . Applying Php in HTML technique will be very useful , in this case , where php file might dynamically perform a dynamic operation to fetch the dynamic content .<br> and Iframe to display the dynamic contents with in a HTML page.<br> <br> <font color="#008000"><b>Let me explain practically how this works out </b></font><br> <br> Create two file named<br> <br> <font color="#000080">Test.htm<br> Test.php</font><br> <br> <font color="#800080">Code for Test.htm<br> <html><br> <head>PHP in HTML<head><br> <body><br> <h2><font face="arial" color="green"></font></h2><br><br><br> <Iframe src="Test.php" width="300" height="600"></Iframe><br> </body><br> </html></font><br> <br> <font color="#008080">Code for Test.php <br> <?phpinfo();?></font><br> <br> <font color="#800000">Description :</font> Test.htm contains contains the tag Iframe in it , the attribute src="Test.php" of the Iframe Sets or retrieves a URL to be loaded by the object Iframe .<br> Width and height attributes specifies the width and height of the Iframe in pixels or in percentage.<br> <br> Coming to the Test.php , <?phpinfo?>this script displays the php configuration file .<br> <br> Put the files in your webserver root folder (ie wwwroot folder)<br> <br> Now run the Test.htm, you will be able to see the Test.php loaded inside the Iframe, on the Test.htm <br> <br> This technique can be applied to include any file into HTML file</td> </tr> <tr> <td width="100%"><font color="#800000"><b>Article By</b></font></td> </tr> <tr> <td width="100%"><b><font color="#0000FF">G.Ajaykumar</font></b></td> </tr> <tr> <td width="100%"><font color="#800000"><b>Jr. Systems Analyst</b></font></td> </tr> <tr> <td width="100%"><font color="#800000"><b>Ferntech Systems Pvt. Ltd</b></font></td> </tr> </table> <p><br> </p> Upload
オリジナルのコメント (3)
Wayback Machineから復元