You are here: Re: My php source code do not work « PHP Programming Language « IT news, forums, messages
Re: My php source code do not work

Posted by Erwin Moller on 05/29/07 17:43

Pablo wrote:

> also this make error
>
> if (!isset($_GET['dbf']))
> {header("Location:http://www.pablo.es");}
>
> why?

Hi,

I don't know why it makes an error.
Most probably because your script makes an error somewhere futher down the
script, because you forgot the exit-command after the header.

Try this:
if (!isset($_GET['dbf'])){
header("Location:http://www.pablo.es");
exit;
}

Remember that PHP can set as many headers as you want, and the script runs
on and on and on.
You must stop it yourself by using exit.

Also, try using brackets {} like I did. It makes the code a lot more
readable. :-)


Good luck.

Regards,
Erwin Moller

 

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

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