Answers for "include a website in php file"

PHP
0

include a website in php file

Extremely insecure:
<?php include("http://www.othersite.com/filename.html"); ?>

What you probably want is:
<?php print file_get_contents("http://www.othersite.com/filename.html"); ?>
Posted by: Guest on February-11-2021
1

insert an html page into php

<?php
// do php stuff

include('fileOne.html');
include('fileTwo.html');

?>
Posted by: Guest on November-12-2020

Browse Popular Code Answers by Language