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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-02-2009, 03:21 AM   #1
SABAI
Confirmed User
 
Join Date: Jan 2001
Location: footmaniac.com
Posts: 2,880
Need quick help for PHP URGENT !

ok here is what i'm looking for :


i need the correct syntax for implementing my free hosted galleries for my affiliates .... i had it working up until i had a domain hijacked and all the files gone of the face of the earth .

affiliate enters his ccbill, verotel or any other biller's reseller ID into a simple GET or POST form , it then shows all the galleries listed like http://gals.mypaysite.com/gal01/index.php?=REFID
Code:
<a href="http://gals.footmaniac.com/Gal01/index.php?id=<?php print("$REFID");?>">http://gals.footmaniac.com/Gal01/index.php?id=<?php print("$REFID");?></a>
and within the index.PHP of each gallery i need a call for the REFID to be included on every link to my paysite like
Code:
<a href="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=925808-0000&PA=<?php print("$REFID");?> 
&HTML=http://www.footmaniac.com/main.html">
of course the verotel galleries will be vindex.php, segpay galleries will be sindex.php etc etc linking to the vmain.html and tour billing with verotel , the smain.html and tour billing through segpay and so on .... ( got 6 billing companies : ccbill, segpay, epoch,verotel, zombaio and gxbill )

i know i'm very close but i can't get it to work as i know shit about programing
__________________
SABAI is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2009, 05:24 AM   #2
SilentSound
Confirmed User
 
SilentSound's Avatar
 
Join Date: Mar 2009
Location: NP-hard
Posts: 287
Hi,

kinda more a Q&A topic, but here goes...

if I understand your problem correctly, you passed variables aren't appearing in the code. First, if you want that code to work, you need to have Register Global Variables PHP setting on, which is a security risk, I don't recommend it.

In your PHP.INI make sure you have

Code:
register_globals = off
That's done, now the code:

Code:
<a href="http://gals.footmaniac.com/Gal01/index.php?id=<?php echo $_REQUEST['REFID']; ?>">http://gals.footmaniac.com/Gal01/index.php?id=<?php echo $_REQUEST['REFID']; ?></a>
$_REQUEST is needed, as all variables parsed from GET/POST input will be there instead of having them automatically appear.

Next, in the index.php files:

Code:
<a href="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=925808-0000&PA=<?php echo $_REQUEST['id']; ?> 
&HTML=http://www.footmaniac.com/main.html">
Because you linked with an id=... in the GET request, you need to use that in the index.php pages.

Hope that helped.
SilentSound is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2009, 06:36 AM   #3
SABAI
Confirmed User
 
Join Date: Jan 2001
Location: footmaniac.com
Posts: 2,880
YAYEEEEEEEEEEE its working , thanks a bunch man ..... i would have never thought of the $_REQUEST instead of $_GET or $_POST which were returning a whole bunch of useless arrays ...
__________________
SABAI is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2009, 06:40 AM   #4
SilentSound
Confirmed User
 
SilentSound's Avatar
 
Join Date: Mar 2009
Location: NP-hard
Posts: 287
I'm not sure why they would be returning useless stuff but hey.. it works!
SilentSound is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2009, 07:28 AM   #5
Voodoo
♥ ♦ ♣ ♠
 
Voodoo's Avatar
 
Industry Role:
Join Date: Sep 2002
Location: Porn Valley, CA
Posts: 10,590
useless arrays are like pointless classes.
__________________

"I'm selflessly supporting the common good, but only coincidentally looking out for No.1."
Voodoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2009, 12:11 PM   #6
SABAI
Confirmed User
 
Join Date: Jan 2001
Location: footmaniac.com
Posts: 2,880
i meant useless for what i intended to do ;-)
__________________
SABAI is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.