Special Offers
Live Help
Skype us
Our Facebook page
Follow Us On Twitter
Our Youtube Channel
Blog


 Client Area

Email Address:

Password:

 Remember Me

Forgotten Your Password?





Subscribe now in Dimofinf Mobile and enjoy the wide range of premium services. At a very small price, you will receive our SMS text messages wherever you are! More



  Add to Favourites Print this Article
Calling an External Content

Calling an External Content

To call a file and display it in the site follow these steps:

  1. To add a new block in the style you are already using, kindly follow the tutorial

https://www.dimofinf.net/knowledgebase.php?action=displayarticle&id=190&language=English

  1. Use the following code to call the file you want to display in the page

PHP :
<-- INCLUDESCRIPT BLOCK relative_path_to/file.php --> 

Replace relative_path_to with the file path

Replace file.php with the file name

  1. Then add the code after modification in the additional page (to have the form)

PHP :
<!-- INCLUDE BLOCK header -->
<!-- 
INCLUDESCRIPT BLOCK relative_path_to/file.php -->
<!-- INCLUDE 
BLOCK footer --> 

An example for a called code

PHP :
<?php
echo "hello world";
for (
$i = 1; $i <= 10; $i++){
echo 
$i."
";
if (
$i==5){
echo "This is number 5 
";
}
}
?>

  1. The new page link will have the form

http://www.DOMAIN.TLD/page.php?do=show&action=myname

Replace DOMAIN.TLD with your site domain

Replace myname with the new block name you added in the first step

Was this answer helpful?

Also Read
Add a New File Extension (Views: 2649)