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 06-04-2008, 11:20 PM   #21 (permalink)
The Contributor
 
j4v1's Avatar
 
Join Date: May 2008
Posts: 30
Thanks: 5
j4v1 is on a distinguished road
Default

I having the same problem. I was able to get a work around. What I had to do is copy the script to notepad, save it under a different name and then open up directly into the browser w/ http://localhost:{port}/test.php. I even tried opening the new file through my editor (Microsoft Expression Web), and still no dice. These editors are adding white spacing somewhere, messing everything up.

But that was just me.

Hope that helps.
j4v1 is offline  
Reply With Quote
Old 06-05-2008, 01:29 PM   #22 (permalink)
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default

i found out the problem. seems like certain editors insert formating characters into the file and are invisible to you. if you open the php file in notpad you will see them. they look like [] and there are thousands of them. basically for every space they are put.

i was using microsofts expression web, and the funny thing is i tried opening the file with notpad++ , dreamweaver and the special characters wouldnt show. but once i opened it with notpad there it was

thats why i was getting 1's. so if your getting headers sent when you dont have any whitespace or anyhthing anywehre open in notepad when in doupt.
__________________
no signature set
sarmenhb is offline  
Reply With Quote
Old 06-05-2008, 01:45 PM   #23 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

ahh that explains it, why didnt i think of that.

glad you found the problem.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 06-06-2008, 06:09 AM   #24 (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 sarmenhb View Post
i found out the problem. seems like certain editors insert formating characters into the file and are invisible to you. if you open the php file in notpad you will see them. they look like [] and there are thousands of them. basically for every space they are put.

i was using microsofts expression web, and the funny thing is i tried opening the file with notpad++ , dreamweaver and the special characters wouldnt show. but once i opened it with notpad there it was

thats why i was getting 1's. so if your getting headers sent when you dont have any whitespace or anyhthing anywehre open in notepad when in doupt.
The reason for that is, Notepad does not support line breaks.
__________________
VillageIdiot can have my babbies ;d
Orc 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 03:34 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