I have this line of code: function smile($aurl) ... ... ... header("Location: smile($_GET['url'])"); Code (markup): and it keeps on giving me this error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/admin/domains/site.com/public_html/test.php on line 23 Code (markup): What am I doing wrong, can someone help me rewrite the code to make it work?
I also tried this: function smile($aurl) ... ... ... $aurl= $_GET['url']; $linksmile=smile($aurl); header("Location: $linksmile"); Code (markup): and I got this: Warning: Cannot modify header information - headers already sent by (output started at /home/admin/domains/site.com/public_html/test.php:2) in /home/admin/domains/site.com/public_html/test.php on line 64 Code (markup):
whats in the "...."'s? and what are you trying to do? (Something with a function to redirect based on a link variable?)
Yes, the ... are the rest of the script, this is one part of my encryption script, I really can't share the rest because there would not be a point of encryption if I shared the rest.