![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Feb 2002
Location: New Jersey
Posts: 1,401
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2004
Location: Ohio, US
Posts: 662
|
hit me up, i have something you might like.
edit, whoops: 297994306 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2004
Posts: 3,505
|
<?echo $_REQUEST["ref"];?>
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
G F Y not
Industry Role:
Join Date: Jan 2004
Location: MN
Posts: 2,910
|
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>'); ?>
__________________
![]() TGPFactory Full TGP Design & Installation Services ICQ 250 142 484 · AIM TGPDynamix · Email: patrick (at) tgpfactory (dot) com See who I am at AdultWhosWho.com! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
G F Y not
Industry Role:
Join Date: Jan 2004
Location: MN
Posts: 2,910
|
Quote:
![]()
__________________
![]() TGPFactory Full TGP Design & Installation Services ICQ 250 142 484 · AIM TGPDynamix · Email: patrick (at) tgpfactory (dot) com See who I am at AdultWhosWho.com! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Feb 2004
Posts: 3,505
|
Quote:
Use it like so: <a href="http://www.isohorny.com/blabla/somethingelse.php?ref=<?echo $_REQUEST["ref"];?>"> |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
G F Y not
Industry Role:
Join Date: Jan 2004
Location: MN
Posts: 2,910
|
Quote:
<a href="http://www.isohorny.com/blabla/somethingelse.php?ref= 0134234234">
__________________
![]() TGPFactory Full TGP Design & Installation Services ICQ 250 142 484 · AIM TGPDynamix · Email: patrick (at) tgpfactory (dot) com See who I am at AdultWhosWho.com! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Feb 2004
Posts: 3,505
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Feb 2002
Location: New Jersey
Posts: 1,401
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Feb 2004
Posts: 3,505
|
Quote:
http://www.domain.com/path/page.php?ref=you |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Feb 2002
Location: New Jersey
Posts: 1,401
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
|
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.
__________________
Perfect Gonzo |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Feb 2004
Posts: 3,505
|
Quote:
PD: URLEncode your link here: http://www.albionresearch.com/misc/urlencode.php |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Join Date: Feb 2002
Location: New Jersey
Posts: 1,401
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
|
__________________
Perfect Gonzo |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Confirmed User
Join Date: Feb 2004
Posts: 3,505
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
Join Date: Feb 2002
Location: New Jersey
Posts: 1,401
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
|
Sorry monkey... I meant %3F.
Nice catch. ![]() Does this one work? http://hosted.247pass.com/cumhogs/001gp/%3Fref=12345
__________________
Perfect Gonzo |
![]() |
![]() ![]() ![]() ![]() ![]() |