Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 6th Mar 2011, 05:14 PM   #1
Warrior Member
 
Join Date: 2011
Location: ZG
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
link cloaking problem
Share on: 
fb share twitter share gplus share more share

hi
i'm building my first site as affiliate and,as expected i have one problem. i want to cloak aff link,i followed instructions but seems it doesen't work for me,i'm getting this message when i enter that link itno browser:

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home3/howtobes/public_html/go/fatlossfor.php on line 2

Parse error: syntax error, unexpected ':' in /home3/howtobes/public_html/go/fatlossfor.php on line 2

I did everything step by step.. anybody knows what does that message means?

thanks
Ivan Markovic is offline  
Unread 7th Mar 2011, 01:14 PM   #2
HyperActive Warrior
War Room Member
 
Andy Crofford's Avatar
 
Join Date: 2008
Location: Carl Junction, MO
Posts: 297
Thanks: 1
Thanked 56 Times in 41 Posts
Default
Re: link cloaking problem
Share on: 
fb share twitter share gplus share more share

Can you show us your code in fatlossfor.php?
Andy Crofford is offline  
Unread 20th May 2011, 03:40 AM   #3
Active Warrior
 
RayFinckle's Avatar
 
Join Date: 2011
Posts: 83
Thanks: 7
Thanked 12 Times in 9 Posts
Default
Re: link cloaking problem
Share on: 
fb share twitter share gplus share more share

Im in the same exact shoes as the OP, same error message. My php code is

<?php
header('Location: myaffiliatelink’);
?>

(my affiliate link is in there, im not supposed to share that right?)

Thanks in advance
RayFinckle is offline  
Unread 20th May 2011, 03:48 AM   #4
<?php echo("Hello"); ?>
 
Join Date: 2011
Location: EU
Posts: 197
Thanks: 3
Thanked 27 Times in 27 Posts
Default
Re: link cloaking problem
Share on: 
fb share twitter share gplus share more share

Originally Posted by RayFinckle View Post

Im in the same exact shoes as the OP, same error message. My php code is

<?php
header('Location: myaffiliatelink’);
?>

(my affiliate link is in there, im not supposed to share that right?)

Thanks in advance
You have done a mistake at the end: its ' and not ’

@op: post the php code inside fatlossfor.php otherwhise we cant really help you!
andrejvasso is offline  
Unread 20th May 2011, 04:44 AM   #5
Active Warrior
 
RayFinckle's Avatar
 
Join Date: 2011
Posts: 83
Thanks: 7
Thanked 12 Times in 9 Posts
Default
Re: link cloaking problem
Share on: 
fb share twitter share gplus share more share

Originally Posted by andrejvasso View Post

You have done a mistake at the end: its ' and not ’

@op: post the php code inside fatlossfor.php otherwhise we cant really help you!
it unfortunately didnt work, now it says

Fatal error: Call to undefined function phpheader() in /home/diablo/public_html/bestshowerheadinfo.com/go/revitalizingshowerfilter.php on line 1

i appreciate the help ive been trying to figure this out for days its driving me crazy. lol
RayFinckle is offline  
Unread 20th May 2011, 04:47 AM   #6
Active Warrior
 
RayFinckle's Avatar
 
Join Date: 2011
Posts: 83
Thanks: 7
Thanked 12 Times in 9 Posts
Default
Re: link cloaking problem
Share on: 
fb share twitter share gplus share more share

this is what i changed it to

<?php
header('Location: myaffiliatelink');
?>
RayFinckle is offline  
Unread 20th May 2011, 04:50 AM   #7
<?php echo("Hello"); ?>
 
Join Date: 2011
Location: EU
Posts: 197
Thanks: 3
Thanked 27 Times in 27 Posts
Default
Re: link cloaking problem
Share on: 
fb share twitter share gplus share more share

Originally Posted by RayFinckle View Post

this is what i changed it to

<?php
header('Location: myaffiliatelink');
?>
This is correct. The error must be somewhere else... if you can, paste the whole php code of the file in question, we might find out what it is.

Also: do you have any special chars in your URL? That could also cause problems...

Edit: What editor are you using? Could it be that the white space between <?php and header has been removed by your editor? If you have only copied and pasted the code, make sure there is a whitespace between <?php and header !

Edit 2: Before you paste the whole code here, try to follow my suggestion in the first edit
andrejvasso is offline  
Unread 20th May 2011, 05:01 AM   #8
Fabrizio Van Marciano
 
Magnet4Marketing's Avatar
 
Join Date: 2011
Location: Cornwall, England
Posts: 47
Thanks: 11
Thanked 3 Times in 3 Posts
Default
Re: link cloaking problem
Share on: 
fb share twitter share gplus share more share

Hey this might help you it works a treat for my affiliate links

<a href="productname" onmousedown="this.href='affiliate-link-url-here';">Product Name</a>
Magnet4Marketing is offline  
Unread 20th May 2011, 05:05 AM   #9
<?php echo("Hello"); ?>
 
Join Date: 2011
Location: EU
Posts: 197
Thanks: 3
Thanked 27 Times in 27 Posts
Default
Re: link cloaking problem
Share on: 
fb share twitter share gplus share more share

Originally Posted by Magnet4Marketing View Post

Hey this might help you it works a treat for my affiliate links

<a href="productname" onmousedown="this.href='affiliate-link-url-here';">Product Name</a>

Sorry, but how is this supposed to help??? Please stop spamming and just trying to get your post count to 50. And btw. why would you use such a stupid code format when you can simply do <a href="your-aff-url-here">Name</a>. Whats the point of having the product name in the href tag? Anyways, back to topic:

@op: ignore that comment and try to check for a whitespace
andrejvasso is offline  
Unread 20th May 2011, 05:05 AM   #10
Active Warrior
 
RayFinckle's Avatar
 
Join Date: 2011
Posts: 83
Thanks: 7
Thanked 12 Times in 9 Posts
Default
Re: link cloaking problem
Share on: 
fb share twitter share gplus share more share

Originally Posted by andrejvasso View Post

This is correct. The error must be somewhere else... if you can, paste the whole php code of the file in question, we might find out what it is.

Also: do you have any special chars in your URL? That could also cause problems...

Edit: What editor are you using? Could it be that the white space between <?php and header has been removed by your editor? If you have only copied and pasted the code, make sure there is a whitespace between <?php and header !
i love you!!!!!, it was the white space, such a relief now i can get back to work. thanks again and have a great day
RayFinckle is offline  
Unread 20th May 2011, 05:09 AM   #11
<?php echo("Hello"); ?>
 
Join Date: 2011
Location: EU
Posts: 197
Thanks: 3
Thanked 27 Times in 27 Posts
Default
Re: link cloaking problem
Share on: 
fb share twitter share gplus share more share

Originally Posted by RayFinckle View Post

i love you!!!!!, it was the white space, such a relief now i can get back to work. thanks again and have a great day
Great to hear! if you encounter another problem, dont hesitate to reply to this thread once again - i will try to keep an eye on it too
andrejvasso is offline  
Unread 20th May 2011, 12:41 PM   #12
Active Warrior
 
Join Date: 2010
Posts: 32
Thanks: 0
Thanked 6 Times in 3 Posts
Default
Re: link cloaking problem
Share on: 
fb share twitter share gplus share more share

Remember to put an exit(); after any PHP header redirects not doing this will cause PHP to continue to load the page before redirecting. the exit(); stops this. If I was a hacker (which i choose to not be) I could easily target sites that use only header: location redirect to gain access to content that shouldnt have been viewable. My method of attack would be command line fgets which can stop the redirect completely.

Just a friendly note.. By the way! Theres great info on this forum! Good stuff guys.
newbie365 is offline  
Closed Thread


Bookmarks

Tags
cloaking, link, problem


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

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




All times are GMT -6. The time now is 07:17 PM.