PHP simple question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alex79
    Confirmed User
    • Jun 2002
    • 996

    #1

    PHP simple question

    i have 2 sites...
    on domain2.com i use an php script to rotate many links from a text file (from example if i send to domain2.com/teen.php then will be displayed a random gallery from the links that exist in domain.com/teen.txt)
    if i send from domain1.com/index.html to domain2.com/teen.php and the surfer will be send to a random link that exist in domain2.com/teen.txt (for example domain3.com/gallteen5.htm) then the domain3.com will track the hit coming from domain1.com or domain2.com?

    thanks for yours help
  • arial
    Confirmed User
    • Jul 2002
    • 4012

    #2
    I'd help you but you just confused the living hell out of me.

    Comment

    • alex79
      Confirmed User
      • Jun 2002
      • 996

      #3
      what's confused? if i send from site1 to site2/gallery.php and the surfer are redirected to site3 then the site 3 will track the hit comung from site1 or site2?

      Comment

      • Mr.Fiction
        Confirmed User
        • Feb 2002
        • 9484

        #4
        Originally posted by arial
        I'd help you but you just confused the living hell out of me.
        Don't be lazy, protect free speech: ACLU | Free Speech Coalition | EFF | IMPA

        Comment

        • strobi
          Confirmed User
          • Nov 2002
          • 7383

          #5
          Originally posted by Mr.Fiction



          Comment

          • Sneka
            Confirmed User
            • Jan 2003
            • 413

            #6
            It will be send from your domain2.com, because the php script will ONLY READ the url on your domain.com but open window/send visitor through the php.

            So domain3.com will track the hit coming from domain2.com

            Comment

            • alex79
              Confirmed User
              • Jun 2002
              • 996

              #7
              thanks Sneka

              Comment

              • alex79
                Confirmed User
                • Jun 2002
                • 996

                #8
                Sneka, i most contradict u...
                i've maked some tests sending the surfer from site1.com to sites2.com/gallery.php
                gallery.php contain the next script to select an random link from gallery.txt

                <?php
                $fileName = "gallery.txt";
                mt_srand( (double) microtime() * 1000000 );
                $a = file($fileName);
                $randNum = mt_rand( 0, sizeof($a)-1 );
                header( "Location: ". $a[$randNum] );
                ?>

                gallery.txt contain for example next 3 links:
                site3.com/linkgallery1.html
                site3.com/linkgallery2.html
                site3.com/linkgallery3.html

                finaly, if i send from site1.com to site2.com/gallery.php and i'm redirected to site3.com/linkgallery2.html (i.e) then site3 will track the surfer coming from site1 , not site2

                Comment

                • aztecvision
                  Confirmed User
                  • Feb 2003
                  • 979

                  #9
                  jigga who, jigga what?

                  Comment

                  • fiveyes
                    Confirmed User
                    • Aug 2001
                    • 1680

                    #10
                    Originally posted by alex79
                    Sneka, i most contradict u...

                    ...

                    finaly, if i send from site1.com to site2.com/gallery.php and i'm redirected to site3.com/linkgallery2.html (i.e) then site3 will track the surfer coming from site1 , not site2
                    And if you give it some thought, you'll see why that had to be the case.
                    <CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A>

                    <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER>

                    Comment

                    • JDog
                      Confirmed User
                      • Feb 2003
                      • 7453

                      #11
                      Originally posted by alex79
                      what's confused? if i send from site1 to site2/gallery.php and the surfer are redirected to site3 then the site 3 will track the hit comung from site1 or site2?
                      Not a for sure way to tell. Because different browser will show it coming from different refers, but it should show domain1 as the referer, if domain 2 is just redirecting? make any sense?

                      jDoG
                      NSCash now powering ReelProfits.com
                      ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
                      PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
                      NOW OFFERING OVER 60 SITES
                      CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)

                      Comment

                      Working...