TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Header(location) stop working? (http://www.talkphp.com/general/2765-header-location-stop-working.html)

marxx 05-06-2008 11:19 AM

Header(location) stop working?
 
Hi all!

This:
PHP Code:

Header('Location: index.php'); 

stop working while I change my server CP to DirectAdmin.
I used to have Plesk.

I haven't done anything changes to my code and all php/apache conf files are by default. Everything is clean install.

I just get blank page and no error msg what so ever!? So what should I do?

Thanks for all help!

Orc 05-06-2008 11:40 AM

Quote:

Originally Posted by marxx (Post 14339)
Hi all!

This:
PHP Code:

Header('Location: index.php'); 

stop working while I change my server CP to DirectAdmin.
I used to have Plesk.

I haven't done anything changes to my code and all php/apache conf files are by default. Everything is clean install.

I just get blank page and no error msg what so ever!? So what should I do?

Thanks for all help!

try this:
make the h lowercase.

xenon 05-06-2008 11:46 AM

Put these lines before your header line and see what you get after:

Code:

ini_set('display_errors', 'on');
error_reporting(E_ALL);

PHP is not case-sensitive, but it's a good habit calling functions as they are defined (lowercase, that is).

delayedinsanity 05-06-2008 05:10 PM

Quote:

PHP is not case-sensitive, but it's a good habit calling functions as they are defined (lowercase, that is).
No?

PHP Code:

$szTestOne "One, ";
$sztestone "Two, ";
define("TESTTWO""Three, ");
define("testtwo""Four.");

echo 
$szTestOne $sztestone TESTTWO testtwo

returns One, Two, Three, Four.
-m

xenon 05-06-2008 08:31 PM

PHP Code:

echo strlen('abcd'), '<br />'StrLen('abcd'), '<br />'stRLen('abcd'); 

I strictly meant function names. Sorry for generalizing.

delayedinsanity 05-06-2008 08:32 PM

Just don't let it happen again. Every time you generalize, a new pop-up ad is born on the internet. ;-)
-m


All times are GMT. The time now is 04:08 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0