Jump to content

Making PHP output a file in HTML


Kolusion

Recommended Posts

I am trying to make PHP output a file in html and using the following code.

<?php
                                        readfile("./1/index.html"); 
                                ?>

 

... but it isn't working. How would I get PHP to output a file as HTML?

Link to comment
https://forums.phpfreaks.com/topic/245268-making-php-output-a-file-in-html/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.