simple question...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

simple question...

Post by pleigh »

hi there,

i am new to php and programming a login form, at first i am receiving warnings, then turned the output_buffering to ON, then it proceeds to the redirected page. i was wandering if turning the output_buffering will have a security threat to every page that i make

thanks in advance.

pleigh
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

fixing your code to not need output buffering is preferred..

edit: have a read: viewtopic.php?t=1157

Moved to PHP - Code, for guidance. :)
Last edited by feyd on Wed Jan 19, 2005 6:05 am, edited 1 time in total.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

You're echoing something before a header() function. Thats the problem. Change your script so that theres nothing printed before you do the redirect.

(I'm using my special psychic PHP skills here.. don't even need to see the code. Maybe.)
sambuchi
Forum Newbie
Posts: 2
Joined: Wed Jan 19, 2005 3:10 pm

Need Help???

Post by sambuchi »

I've been using php over the past year...
I have posted some working examples here...
http://www.sambuchi.net
click the PHP link
Need a question answered or code let me know!!
:D :D :D
Post Reply