You are here: Re: Bug or not bug « PHP Programming Language « IT news, forums, messages
Re: Bug or not bug

Posted by paullefil on 11/21/59 11:56

Thank you very much !
It was a space after ?> in the file test2.php


Alvaro G. Vicario a écrit :

> *** paullefil escribió/wrote (25 Aug 2006 09:39:21 -0700):
> > @header( "Location: http://www.mydomain.com/test3.php" );
>
> The @ operator removes any possible warning or error message. You'll never
> be able to debug properly if you drop it here and there in your code.
> Furthermore, what runtime error are you expecting in a call to header()??
>
> Also, sending a header doesn't stop the script execution. I suggest you
> append an exit() statement.
>
> > The result is a blank page but normally you will be redirect to
> > http://www.mydomain.com/test3.php with "it's test3.php" written.
>
> Have you enabled error reporting directives in "php.ini". If I recall
> correctly, they are:
>
> display_errors = On
> error_reporting = E_ALL
>
>
> --
> -+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
> ++ Mi sitio sobre programación web: http://bits.demogracia.com
> +- Mi web de humor con rayos UVA: http://www.demogracia.com
> --

 

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

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