Jump to content

PHP Include of HTML Page


Recommended Posts

Hello

I have a website "Example.com" and want to use PHP Include (or SSI Include) to

load page "Example2.com/index.html" on "Example.com".

On my hosting i have enabled external connections.

 

I know the function:

<?php include("http://example2.com/index.html"); ?>

 

But where i must put it and what settings must be enabled in Prestashop ?

 

Please help with this problem.

Thanks.

Link to comment
Share on other sites

actually in the prestashop template the way to do it is

{include file="$tpl_dir./errors.tpl"}

 

Thank you for reply

But maybe i don't understand correctly ,

i need to embed my another website (domain2)

on my domain1.

 

Is this possible with templates ?

Link to comment
Share on other sites

It seems that i am alone here :)

Ok , i think i understood i make a php file for example TEST.PHP with content:

<?php include("1.html"); ?>

then i go to template folder and edit TPL for example HEADER.TPL and insert the following code:

{include file="TEST.PHP"}

 

Is it correct ?

Link to comment
Share on other sites

×
×
  • Create New...