TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-06-2008, 11:19 AM   #1 (permalink)
The Contributor
 
marxx's Avatar
 
Join Date: Sep 2007
Location: Finland
Posts: 45
Thanks: 3
marxx is on a distinguished road
Default 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!
Send a message via MSN to marxx
marxx is offline  
Reply With Quote
Old 05-06-2008, 11:40 AM   #2 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by marxx View Post
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.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 05-06-2008, 11:46 AM   #3 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

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).
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Old 05-06-2008, 05:10 PM   #4 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

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
delayedinsanity is offline  
Reply With Quote
Old 05-06-2008, 08:31 PM   #5 (permalink)
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

PHP Code:
echo strlen('abcd'), '<br />'StrLen('abcd'), '<br />'stRLen('abcd'); 
I strictly meant function names. Sorry for generalizing.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
Old 05-06-2008, 08:32 PM   #6 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

Just don't let it happen again. Every time you generalize, a new pop-up ad is born on the internet.
-m
delayedinsanity is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:59 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design