PHP How to pass a file?
Posted: Wed Aug 18, 2010 2:22 am
a.html file code:
Another PHP file:
Code: Select all
<html>
<body>
This is content, I would like to embed into another file.
</body>
</html>
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?
?>