I managed to muck together a simple stats logging script a while back. It just grabs the stats I wan't and loads the parking company lander in an Iframe. Fairly simple...
Anyhow I just bought a new high traffic adult domain and I want to split test it between several parking services to see who pays the best. I know I can use CGI/PHP and the basic concepts needed to write the script aren't out of my reach. Where I'm stuck is I don't know how to track which company I sent the last visitor to so I can send the next one somewhere else. At least not efficiently. I could save a counter in a file then load it on the next visit. Accessing from a file seems like the wrong way to do it though. Is there some sort of global variable that doesn't get reset from one execution of a php or cgi script to the next?
I don't know if it makes any difference or not, but it seems like opening and reading a file would create overhead and slow down getting my visitors to the lander. I'm sure I can make this work using the file idea. It just seems I'm missing something obvious that would make it much more simple.
Anyhow I just bought a new high traffic adult domain and I want to split test it between several parking services to see who pays the best. I know I can use CGI/PHP and the basic concepts needed to write the script aren't out of my reach. Where I'm stuck is I don't know how to track which company I sent the last visitor to so I can send the next one somewhere else. At least not efficiently. I could save a counter in a file then load it on the next visit. Accessing from a file seems like the wrong way to do it though. Is there some sort of global variable that doesn't get reset from one execution of a php or cgi script to the next?
I don't know if it makes any difference or not, but it seems like opening and reading a file would create overhead and slow down getting my visitors to the lander. I'm sure I can make this work using the file idea. It just seems I'm missing something obvious that would make it much more simple.





