PDA

View Full Version : DW-MX2004 & SSI


Yousef
01-26-2005, 01:31 PM
Hello,

I wish to know how to add an external php file to a website using DW-MX 2004

I tried the include command but without any result.

<? php include('admin/menu.php') ?>

Please help!

domedia
01-26-2005, 06:03 PM
<?php include('admin/menu.php') ?>
Note that there is no space between the questionmark and 'php'

It might be that your server is set up to work even without using 'php'
<? include('admin/menu.php'); ?>

Yousef
01-27-2005, 07:55 PM
Hi,

The main problem is when the php file is in a subfolder, but it works when it is on the main folder (root) ?!

Regards

domedia
01-31-2005, 02:04 PM
You always have to use a correct path to files.
If you have a file /subfolder/page.php and a /admin/menu.php then the right path from page.php to menu.php would be <?php include('../admin/menu.php') ?>

Yousef
02-02-2005, 09:43 PM
Thanks domedia