Ask a Question related to PHP Development, Design and Development.
-
fartsniff #1
Capturing the entire URL
Hello all,
Been playing around with capturing the entire URL. I dont have any problems
if it a file,
i.e. [url]http://www.mydomain.com/somefile.php[/url], I am running into problems with
this,
[url]http://www.mydomain.com/test[/url]
This is what I use for "redirection" now (btw, it is IIS (Win2k) and PHP
4.3.2)
The test.mydomain.com is setup as a host header under IIS
$redirect = getenv("HTTP_HOST");
if ($redirect=="test.mydomain.com"){
header("Location:http://www.mydomain.com/modules.php?name=test");
}
The above code works fine. Redirects no problem.
However, I am trying to get this to do the same thing:
[url]www.mydomain.com/test[/url] or [url]www.mydomain.com/test/[/url]
and both would take you here:
[url]http://www.mydomain.com/modules.php?name=test[/url]
I have tried every combination of the SERVER vars, but no luck.
I either generate a 404 or the test isn't part of the URL.
Any ideas ?
fartsniff Guest
-
Capturing the whole URL
I am working with a site where I want a user to be able to select whether they are viewing a high or low bandwidth version of the website. I would... -
Capturing outside inputs
Can anyone point me to resources for receiving outside input into a director application? Specifically, I'm trying to change the settings on a set... -
Capturing FCP on AIX
Hi. I was wondering if anyone knows if it is possible to capture FCP (SCSI over fiber channel) using ethereal, tcpdump, or some other tool on... -
capturing reloads
anyone know how to catch if someone has reloaded a page? -
Capturing Result Set
How can I capture the result set from the statement below to a tempDB table, such as "#result_set" ? exec sp_executesql @stmt Thanks, Craig



Reply With Quote

