Answers for "php load html from php file in variable"

PHP
1

load php in html

//Safe as:
index.html
number.php

//HTML:
<html>
   <head>
      <title>Home</title>
   </head>
   <body>
      <h1>Phone Number</h1>
      <?php include('number.php') ?>
   </body>
</html>

//PHP:
<?php
   echo 4895553268;
?>
Posted by: Guest on October-30-2020
0

get html file data to variable in php

$Vdata = file_get_contents('path/to/YOUR/FILE.php');
Posted by: Guest on November-23-2020

Browse Popular Code Answers by Language