Page 1 of 1

PHP How to pass a file?

Posted: Wed Aug 18, 2010 2:22 am
by phpquestion
a.html file code:

Code: Select all

<html>
<body>
This is content, I would like to embed into another file.
</body>
</html>
Another PHP file:

Code: Select all

<?php 
function insert($file) {
   echo "<html><body>a.html file contents are:  ".$file." --finished a.html.</body></html>";
}

insert(?????);    // How to pass the value here? 
?>

Re: PHP How to pass a file?

Posted: Wed Aug 18, 2010 7:19 am
by requinix