Follow the Example of PHP File Contents
Example:
PHP
<?php
// From URL to get webpage contents.
$url = "https://horje.com/learn/565/how-to-set-html-object-element";
// Initialize a CURL session.
$ch = curl_init();
// Return Page contents.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//grab URL and pass it to the variable.
curl_setopt($ch, CURLOPT_URL, $url);
$result = curl_exec($ch);
echo $result;
?>
What is alternative of Iframe | HTML Link Tutorial |
Type: | Php |
Category: | Web Tutorial |
Sub Category: | HTML Link Tutorial |
Uploaded by: | Admin |