Questions tagged [server-variables]

87 questions
0
votes
0 answers

php > remote_addr returns a non-ip like result

Out of this code below, if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])){ $ip = $_SERVER['HTTP_CF_CONNECTING_IP']; }else{ $ip=$_SERVER['REMOTE_ADDR']; } I ended up getting an IP like this: 2605:6001:e653:f900:f98f:84a2:cdff:e83f Could…
Average Joe
  • 4,521
  • 9
  • 53
  • 81
0
votes
2 answers

serving different content based on the domain in codeigniter

I'm going to develop a website in codeigniter. But not sure if the methor i'm going to use is the best approach. There will be many addon domains for the same site. But content will be filtered based on the domain used to visit the site. For…
esafwan
  • 17,311
  • 33
  • 107
  • 166
0
votes
1 answer

Replace backslash in REMOTE_USER Server Variable when authenticating with domain user iis httpModule

I am authenticating with a CRM running in IIS with domain accounts. I want to replace backslash in the REMOTE_USER server variable to return instead of Domain\User Domain_User or something of sorts because it throws an error when the backslash is…
Georgia Kalyva
  • 737
  • 2
  • 9
  • 23
0
votes
3 answers

Server side variables in javascript

I suppose this isn't a huge deal, since there are other way around this issue, but I'm really curious as to the answer, since I thought this was possible to do. I have a public property that returns a boolean in my code behind. I'd like to access…
Brandi
  • 1,549
  • 4
  • 24
  • 32
0
votes
1 answer

What should be the equivalent of HTTP_USER_AGENT in case of request coming from mobile app to PHP?

I want to pass an URL to some function in PHP. My concern is related to the value of server variable $_SERVER['HTTP_USER_AGENT'] Actually when I made a request from the browser the respective function works fine but when I made a request from CURL…
PHPLover
  • 1
  • 51
  • 158
  • 311
0
votes
1 answer

Server variables in outbound rules always show /jakarta/isapi_redirect.dll rather than actual path

I'm running ColdFusion 11 on Windows 2012/IIS8 and am trying to set up URL writing in IIS with an outbound rule to allow a server variable to be added if the URL matches a certain regular expression:
Loftx
  • 1,760
  • 4
  • 29
  • 50
0
votes
1 answer

Set an MSSQL database variable with VBA, to be used in a View there

I have a pretty common setup, local database Access 2013 .accde that clients run, with some local tables but mostly linked tables and views running on their company's Microsoft SQL Server 2005. One of these views should filter orders based on…
Henrik Erlandsson
  • 3,797
  • 5
  • 43
  • 63
0
votes
3 answers

Server variables and the .js file. Is it possible?

is it possible to invoke server variables in the external .js file ? [Edit] OK, I resolved the problem, thank for Your help ! :)
Tony
  • 12,405
  • 36
  • 126
  • 226
0
votes
1 answer

$_SERVER['SCRIPT_NAME''] in PHP-CGI ?

I need variable $_SERVER['SCRIPT_NAME'] in php-apache for PHP-CGI. I want to use all variables of php-apache for php-cgi or a table compares variable between apache and cgi.
0
votes
2 answers

How does one set a custom server variable?

In my web application I test for a condition on one page and want to retain the results of the test for a specified duration (such as 5 minutes). I can do this with a cookie, of course, but just in case a user has disabled cookies, I'm thinking a…
Cyberherbalist
  • 12,061
  • 17
  • 83
  • 121
0
votes
1 answer

Set PostgreSQL transaction isolation persistently

I'd like to persistently set the transaction isolation level to SERIALIZABLE for all future sessions, but I can see only see a way to do it at the session only. If this is possible, how can it be done?
0
votes
2 answers

Does explicit conversion modify the object?

Does explicit conversion like (string)object will modify the object itself? When I am coding in visual C# in ASP.NET, I met a strange thing: I type: NameValueCollection coll; coll = Request.ServerVariables; LoginStatue1.Text +=…
xhg
  • 1,850
  • 2
  • 21
  • 35
0
votes
0 answers

How do I get the raw (RAW!) URL in an Azure Web Site?

I'm deploying an Azure Web Site and I want to get at the raw url, before anything messes with it. I'm finding, though, that by the time my site gets involved, the URL has already been cleaned up a bit. For…
Michael Haren
  • 105,752
  • 40
  • 168
  • 205
0
votes
1 answer

does $_SERVER['REQUEST_URI'] return the page it's programed in or the page that originated the call

i'm building a class which will house wrappers for the functions i most commonly use, one is a run query function which i will always call when i want to run a MySQL Query, inside it will clean up the query as to ensure there is no SQL…
Memor-X
  • 2,870
  • 6
  • 33
  • 57
0
votes
1 answer

HTTP_PRAGMA manually inserted into $_SERVER

When we output the $_SERVER variable like this: die('
' . print_r($_SERVER, true) . '
'); We'll get alot of taha, and between them these items: [HTTP_CONNECTION] => keep-alive [HTTP_CACHE_CONTROL] => max-age=0 When we to page reload…
user1386320