GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP simple question (https://gfy.com/showthread.php?t=144449)

alex79 06-18-2003 02:19 AM

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 06-18-2003 02:22 AM

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

alex79 06-18-2003 02:31 AM

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?

Mr.Fiction 06-18-2003 02:37 AM

Quote:

Originally posted by arial
I'd help you but you just confused the living hell out of me.
http://www.bookcentre.ca/lindsay2.gif

strobi 06-18-2003 02:45 AM

Quote:

Originally posted by Mr.Fiction


http://www.bookcentre.ca/lindsay2.gif


:1orglaugh :1orglaugh

Sneka 06-18-2003 02:46 AM

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

alex79 06-18-2003 02:53 AM

thanks Sneka

alex79 06-18-2003 04:41 PM

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

aztecvision 06-18-2003 04:49 PM

jigga who, jigga what?

fiveyes 06-18-2003 06:25 PM

Quote:

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.

JDog 06-18-2003 06:40 PM

Quote:

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


All times are GMT -7. The time now is 03:24 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123