Any PHP Gurus Up Tonight?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PornAddict
    Confirmed User
    • Feb 2002
    • 1401

    #1

    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
  • Intrigue
    Confirmed User
    • Feb 2004
    • 662

    #2
    hit me up, i have something you might like.

    edit, whoops: 297994306
    Last edited by Intrigue; 11-28-2004, 08:45 PM.

    Comment

    • Repetitive Monkey
      Confirmed User
      • Feb 2004
      • 3505

      #3
      <?echo $_REQUEST["ref"];?>

      Comment

      • Dynamix
        G F Y not
        • Jan 2004
        • 2910

        #4
        Originally posted by Repetitive Monkey
        <?echo $_REQUEST["ref"];?>
        Close.. Try this.

        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!

        Comment

        • Dynamix
          G F Y not
          • Jan 2004
          • 2910

          #5
          Originally posted by Repetitive Monkey
          <?echo $_REQUEST["ref"];?>
          I always run into spacing problems when I don't include the full HREF code in the PHP echo function.

          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!

          Comment

          • Repetitive Monkey
            Confirmed User
            • Feb 2004
            • 3505

            #6
            Originally posted by Dynamix
            I always run into spacing problems when I don't include the full HREF code in the PHP echo function.
            What the hell are you on about? Mine is correct.

            Use it like so:

            <a href="http://www.isohorny.com/blabla/somethingelse.php?ref=<?echo $_REQUEST["ref"];?>">

            Comment

            • Dynamix
              G F Y not
              • Jan 2004
              • 2910

              #7
              Originally posted by Repetitive Monkey
              What the hell are you on about? Mine is correct.

              Use it like so:

              <a href="http://www.isohorny.com/blabla/somethingelse.php?ref=<?echo $_REQUEST["ref"];?>">
              I never said that was incorrect, just that I always end up having spacing issues, ie.

              <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!

              Comment

              • Repetitive Monkey
                Confirmed User
                • Feb 2004
                • 3505

                #8
                Originally posted by Dynamix
                I never said that was incorrect, just that I always end up having spacing issues, ie.

                <a href="http://www.isohorny.com/blabla/somethingelse.php?ref=
                0134234234">
                Ah. Some editors do that. Use Notepad.
                Last edited by Repetitive Monkey; 11-28-2004, 08:54 PM.

                Comment

                • PornAddict
                  Confirmed User
                  • Feb 2002
                  • 1401

                  #9
                  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.

                  Comment

                  • Repetitive Monkey
                    Confirmed User
                    • Feb 2004
                    • 3505

                    #10
                    Originally posted by PornAddict
                    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.
                    Your TGP script does not accept gallery URLs with variables tacked on to them? Strange. Doublecheck the format of your URL though.

                    http://www.domain.com/path/page.php?ref=you

                    Comment

                    • PornAddict
                      Confirmed User
                      • Feb 2002
                      • 1401

                      #11
                      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

                      Comment

                      • broke
                        Confirmed User
                        • Aug 2003
                        • 4501

                        #12
                        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

                        Comment

                        • Repetitive Monkey
                          Confirmed User
                          • Feb 2004
                          • 3505

                          #13
                          Originally posted by broke
                          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.
                          In that case, it's a shitty TGP script for not automatically urlencoding admin panel URL additions.

                          PD: URLEncode your link here: http://www.albionresearch.com/misc/urlencode.php

                          Comment

                          • PornAddict
                            Confirmed User
                            • Feb 2002
                            • 1401

                            #14
                            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

                            Comment

                            • broke
                              Confirmed User
                              • Aug 2003
                              • 4501

                              #15
                              Does this run through your trade script?

                              http://hosted.247pass.com/cumhogs/001gp/%3Dref=12345
                              Perfect Gonzo

                              Comment

                              • Repetitive Monkey
                                Confirmed User
                                • Feb 2004
                                • 3505

                                #16
                                Originally posted by broke
                                Does this run through your trade script?

                                http://hosted.247pass.com/cumhogs/001gp/%3Dref=12345
                                That's not correct. %3D is =.

                                Comment

                                • PornAddict
                                  Confirmed User
                                  • Feb 2002
                                  • 1401

                                  #17
                                  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

                                  Comment

                                  • broke
                                    Confirmed User
                                    • Aug 2003
                                    • 4501

                                    #18
                                    Sorry monkey... I meant %3F.

                                    Nice catch.





                                    Does this one work?

                                    http://hosted.247pass.com/cumhogs/001gp/%3Fref=12345
                                    Perfect Gonzo

                                    Comment

                                    Working...