Reply to Re: Problem including the other php file.

Your name:

Reply:


Posted by vinnie on 06/08/07 15:30

On Jun 8, 11:07 am, "Ben Sehara" <seh...@hotmail.com> wrote:
> Hi,
>
> I want to include three php files in index.php file like the code below. But
> it always shows up only two, any two of the three, any order.
>
> <tr>
> <td><?php include ("includes/documents.php"); ?> </td>
> </tr>
> <tr>
> <td><?php include ("includes/locations.php"); ?> </td>
> </tr>
> <tr>
> <td><?php include ("includes/status.php"); ?> </td>
> </tr>
>
> Can anyone help me out?
>
> Ben

Hi Ben,
the include() statement works in the same way of require(), with the
difference that require() is executed the first time the statement is
parsed, while include() is evluated each time the statement is
executed.

you may wanna work in this way:

<?php

if (variable == true)
{
include('file.inc');
}
else
{
echo 'hello!';
}
?>

bye,
V.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация