Reply to Re: Bug or not bug

Your name:

Reply:


Posted by Alvaro G. Vicario on 10/05/41 11:56

*** 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
--

[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

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