Jump to content

Affiliate aff.php Script on Another Site


matthall28

Recommended Posts

Instead of having the * with WHMCS i want to add the script to other hosting sites that i own and have the cookie added that way. Makes it much more transparent to the people being referred etc.

Okay just a little guide

billing.website.com = billing system

othersite.com = the site i'm trying to add the code to

 

I've simplified things and taken out all of the hit tracking information for the time being, want to get this working first. So this is the code that i've got in the header of othersite.com

<?php
if (isset($aff)) {
setcookie("WHMCSAffiliateID", $aff, time()+90*24*60*60,'/',''.billing.website.com);
}
?>

 

Any idea why that wouldn't be working? I've tried a large variety of different things

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated