Answers for "how to open external url in php"

PHP
1

php open url

$page = fopen('http://www.example.com/filename.html');
//or
$page = file_get_contents('http://www.example.com/filename.html');

echo $page;
Posted by: Guest on August-06-2021
1

how to link external php file to html

/*You need to change that .html file to .php file. In this way, 
you can easily link one php file to another.*/


<html>
<body>

<h1>Welcome to my home page!</h1>
<p>Some text.</p>
<p>Some more text.</p>
<?php include 'footer.php';?>

</body>
</html>
Posted by: Guest on June-30-2021

Code answers related to "how to open external url in php"

Browse Popular Code Answers by Language