PHP is a web development programming language used to create websites. It is an open source language, which means that it is free to use. It is often used with a MySQL database, which is also open source. An iFrame is a simple floating frame, placed on a website page, to include code from a separate source. The content within the iFrame can come from a separate file within the same site or from a separate website. You can use it to include posts from Facebook or Twitter.
Open Notepad and create a PHP file called "index.php."
Add the following code to the index.php page and save the file:
<h2><font face="arial" color="green"></font></h2>
<Iframe src="include.php" width="300" height="600" border="1"></Iframe>
You can change the width and height attributes of the iFrame tag to suit your website.
Create a new PHP file called "include.php" and add the following code:
This code will show debugging information from PHP when it is included in the file. Save the file.
Open the index.php file in a browser and you will see that the php debugging code appears on the page, from the included PHP file.
- Photo Credit Jupiterimages/Comstock/Getty Images
How to Insert Another Website Inside a Web Page
Web developers sometimes find it necessary or desirable to include content from one website within another. This is helpful if you wish...
How to Insert an Image Into an HTML Email Using PHP
Modern websites often employ PHP in their server-side development. The language was designed for the web and integrates seamlessly with HTML. PHP...
How to Store PDF Files in a Database
Databases are used to store information for easy lookup and better data management. The usual types of data stored are texts and...
How to Create an iFrame in Website Tonight
Website Tonight is the hands-on web designer helper for sites hosted on Go Daddy. It makes web design simpler by presenting things...
How to Upload Images Using Ajax
Using AJAX to upload images to a website makes the process user-friendly, as the upload can occur without the browser's having to...
How to Insert Data From a Form in PHP to a MySQL Database
Inserting data into MySQL from a form on a website using PHP is something that developers often do. The task is not...
How to Embed a PHP File in HTML
PHP files are text files with the php extension. Similar to HTML files, a PHP file contains the code for a PHP...
How to Insert Text in a Textbox in HTML Using PHP
Text boxes are form elements that let your users enter information and then send it to you. Text boxes are generally used...
How to Insert a Decimal in PHP MySQL
PHP provides many standard functions for handling MySQL databases. This means that inserting data into a MySQL database table using a PHP...