[PHP] Changing Apache Log/Environment entries

2003-07-07 Thread Guy Davis
Hi all,

I have a question which I'll try to convey as best as I can. I want to
change the referer variable so when I do a:

header("Location: $location");

the log files on the resulting location have the information in the referer
environment variable that I have set, not what was originally in that
referer variable.

Here's an example.

Someone does a search on yahoo for the term 'search engine positioning'. The
referer information in the log contains something similar to the following:

host156.wdia.com - - [05/Jul/2003:13:35:27 -0700] "GET
?term=search+engine+positioning+and+placementbullseye.html HTTP/1.1" 200
8688
"http://us.rd.yahoo.com/search/navbar/nexts/*-http://search.yahoo.com/search
?p=search+engine+positioning&xargs=02u3hs9yoaKCstSjWzAFC1QsyyctTTIMFUAACqRb4
F&b=21" "Mozilla/4.0 (compatible ; MSIE 4.0 ; Windows 95/98 ; 1236446)"

I want to change that information by pulling the variables after the http so
the only thing passed is the http info.

Can this be done?

A way I've gotten around it that is not acceptable is to use a javascript
form submit instead of the header function. This won't work because we have
a requirement that our users can hit the back button on their browser.
Hitting the back button with the javascript solution just resubmits the
javascript form.

Thanks so much,

Guy Davis



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Can anyone please help me? Re: Using PHP to change unix environment

2003-07-09 Thread Guy Davis
Hi all,

I'm thinking this can't be done but then again almost anything is possible
so I'm hoping some Guru can give me some direction.

The company I work with drives traffic to our clients' websites to increase
their sales. We do search term research and find terms that our clients
overlook.

When some searches for these terms and clicks on the link they are sent to a
php script on our server which then is responsible for stripping out the
search term from the 'referer' environment variable and then continuing to
our client's website.

The only way I was able to 'zap' the 'referer' information was to place a
javascript redirect or form submit in our php script. Unfortunately a
requirement of the search service we work with is that searchers need to be
able to hit the 'back' button to return to the original search page so the
javascript solution is out. The php header function however redirects
without a hitch.

Does anyone know if there is a way to change the referer information prior
to using php's header function? I've tried things like:

header("Referer: $referer");

where the $referer variable holds the original referer minus the search term
without luck.

Any help would be greatly appreciated.

Thanks so much,

Guy Davis



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Calling Apache Modules from PHP

2003-07-09 Thread Guy Davis
Does anyone know how to call Apache modules from PHP? I want to call the
module mod_headers but don't know how to do it. Is it possible?

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php