You are here: Re: Problem including the other php file. « PHP Programming Language « IT news, forums, messages
Re: Problem including the other php file.

Posted by ZeldorBlat on 06/08/07 19:48

On Jun 8, 1:40 pm, "Tom" <t...@to.com> wrote:
> "vinnie" <centro.ga...@gmail.com> wrote in message
>
> news:1181321595.298753.168100@n4g2000hsb.googlegroups.com...
>
>
>
> > On Jun 8, 11:38 am, ZeldorBlat <zeldorb...@gmail.com> wrote:
> > > On Jun 8, 11:30 am, vinnie <centro.ga...@gmail.com> wrote:
>
> > > > 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.
>
> > > Umm, not quite. require() and include() are identical in every way
> > > except for how they handle failure. If the file cannot be included
> > > for some reason, require() will cause the entire script to die while
> > > include will just throw a warning.
>
> > Correct! :)
>
> If you wanted to test for error messages for debugging purposes, is there a
> way to redirect required() fatal errors to error_log? Was trying to find the
> best way for them to track why all three includes weren't working. Would
> required() just output the fatal error to the web page?
>
> Tom
> --
> Newsguy.com - Basic Accounts $39.95 / 12 months

It will be reported if you have error_reporting() turned up
sufficiently. It will be displayed in the output if you have
display_errors enabled in php.ini.

 

Navigation:

[Reply to this 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

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