domingo, 31 de enero de 2016

PHP - How to print the content of a file in the current page

Hi!
To get this done, we have 2 options:

1) OPTION #1:

include "FULL_URL_TO_FILE";

For example:


include "http://www.mywebsite.com/file.html";

2) OPTION #2:

echo file_get_contents("FULL_URL_TO_FILE");

For example:


echo file_get_contents("http://www.mywebsite.com/file.html");


Done.

Share this article with a friend!

No hay comentarios.:

Publicar un comentario