![]() |
Any PHP Gurus Up Tonight?
I'm trying to hook up some galleries so I can have them hosted for affiliates. I need it so that an affiliate can plug in his CCBill number at the end of a url, which will then carry over to the gallery page.
Something like this... Example: http://www.someurlhere.com/hosted/1/index.php?ref=12345 Can anyone help by pointing me in the right direction? - PornAddict |
hit me up, i have something you might like.
edit, whoops: 297994306 |
<?echo $_REQUEST["ref"];?>
|
Quote:
Call the gallery as such: http://domain.com/hosted/gallery1.php?ref=810391 Then in the gallery put: <?PHP ECHO('<A HREF="http://www.sponsor.com/join.php?myid=' .$ref . '">Click here to sign up now!</A>'); ?> |
Quote:
|
Quote:
Use it like so: <a href="http://www.isohorny.com/blabla/somethingelse.php?ref=<?echo $_REQUEST["ref"];?>"> |
Quote:
<a href="http://www.isohorny.com/blabla/somethingelse.php?ref= 0134234234"> |
Quote:
|
Repetive Monkey... your code works and I greatly appreciate it.
However, I'm having an issue and I can't figure out the problem. When I try to plug in the url (with my code) into my tgp script, I get errors saying it either timed out or that it could not resolve hostname. But it works via http browsing. Am I missing a step somewhere? - PornAddict ps - thanks again to everyone who chimed in. |
Quote:
http://www.domain.com/path/page.php?ref=you |
The script I do does allow variables... because I use them from other sponsors.
A sample gallery of mine is: http://hosted.247pass.com/cumhogs/001gp/?ref=12345 Your code worked and "12345" is tacked onto the CCBill code. However, when I try to add that to my tgprotate script, I get errors saying it either timed out or couldn't resolve hostname... yet it loads up fine via browser. Weird! - PornAddict |
You need to properly encode your URL before you try to run in through your trade script...
%26 (amongst others) will soon become your friend. |
Quote:
PD: URLEncode your link here: http://www.albionresearch.com/misc/urlencode.php |
Here's what confuses me more...
Take this link, from Exploited Black Teens http://www.fvotd.com/ads/41la/index.php?rid=437200 If I run that through my tgp script, it works perfectly and I can select to make a thumb... YET... if I take my page and try to run it through, I get an error. Both scripts should be doing the same thing, but I'm missing something somewhere. Is it a server issue? - PornAddict |
|
Quote:
|
I found the problem... even though I'm not exactly sure what it was.
I have two dedicated servers at two different spots. The one that I was testing it on wasn't working. I took the html and uploaded it to my other server (on WebAir) and it worked perfectly. So, all this time it must be a server issue. I'm not sure exactly why it works on one and not the other, but that's the case. Anyway... thanks to everyone who lend a helping hand. If there's anything I can do (probably not tech based though), hit me up! Thanks everyone! - PornAddict |
Sorry monkey... I meant %3F.
Nice catch. :thumbsup Does this one work? http://hosted.247pass.com/cumhogs/001gp/%3Fref=12345 |
All times are GMT -7. The time now is 12:11 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123