Function Fly($url){ print ("<?"); print("header (\"Location: http://enotalone.com\"); "); print("exit; "); print ("?>"); } ok people, this portion of code is supposed to redirect the user, but it does not beacause somehow there is an white space before everything and the redirect fails. why it prints the white space and how can i fix it so there is not white space but only <? header ("Location: http://enotalone.com"); exit; ?>
thank you everyone for help!
Q: why are you printing PHP code?
yes, the scripts gets the article from database, does an insert one of fields and redirect the user.
do you know what the white space?
My question is: why are you printing PHP code? why don't you just excute it?