You are here: Re: problem with include. « PHP Programming Language « IT news, forums, messages
Re: problem with include.

Posted by jonKushner@gmail.com on 01/06/08 20:31

On Jan 6, 12:24 pm, Jonas Werres <jo...@example.org> wrote:
> > What is happening?
>
> What makes you think that the generally working code is interesting but
> the included code that causes the problem is not?
>
> What is your error level? Is display_errors activated? Do you have
> Access to the error log of the webserver?


I don't see anything going on, which leads me to believe its working
fine. Add error_reporting(E_ALL | E_STRICT) inside common and run a
function inside the IF block that was icluded in common.

I.E.

// common.php
error_reporting(E_ALL | E_STRICT);

function scream_yayyyy( ) { echo "WOOOOOOOOOOT"; }


// main file
require_once 'common.php';
if( user && password && database ) scream_yayyyy();

 

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

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