Questions tagged [server-variables]

87 questions
0
votes
1 answer

MySQL Service startup error

When I am starting mysql service it shuts down after 5 seconds. The error description is: Faulting application mysqld.exe, version 0.0.0.0, faulting module mysqld.exe, version 0.0.0.0, fault address 0x002b8853. In Warning log is given: option…
Sayan
  • 145
  • 2
  • 15
0
votes
2 answers

Server Variable is not recognizable in other pages

I have this code in the login.php file : //save user data $token=$user->getId().'_'.hash('sha256',$user->getUsername().microtime()); $name='fsusr_'.$user->getUsername(); //set session and server variables $_SESSION[$name]=$token; //set…
SmootQ
  • 2,096
  • 7
  • 33
  • 58
-1
votes
1 answer

Need non-recaptcha captcha check for website - javascript disabled on client browsers - fight spam orders

I'm trying to figure out how to beat the robot scripts at their own game without using Re-Captcha. What I would like to do in PHP is determine if the previous URL is from the same website and page cart.php, (i.e. https://www.thissite.com/cart.php)…
bbcompent1
  • 494
  • 1
  • 10
  • 25
-1
votes
1 answer

$_SERVER['REMOTE_ADDR'] in php reports different structure

$_SERVER['REMOTE_ADDR'] in php reports different structure IP's from time to time. What I'm used to seeing was something like XXX.XXX.XXX.XXX Now, I also have entries such as 2601:100f:b13b:4bde:63df:a4a3:dc92:c416 etc. What is this? & how can I…
Average Joe
  • 4,521
  • 9
  • 53
  • 81
-1
votes
1 answer

Intranet NT logged user

I have a welcome head

welcome

But I pretend get welcome to the NT logged user this

Welcome <%response.write request.servervariables("LOGON_USER")%>

gives me the DOMAIN\USER how I can only show the user? I don't want the domain…
-1
votes
1 answer

Getting "HTTP_USER_AGENT:UserAgent" from server variables

Sometimes my application is getting UserAgent in the server variable HTTP_USER_AGENT. What does it mean and why it could not get my users browser information ?
Mohamed Farrag
  • 1,682
  • 2
  • 19
  • 41
-1
votes
1 answer

Accessing the server data or variable in client side code (Javascript)

I know that we can use eval and access the public property in declared in the C# code to access the server side variable. however this is not recommended as the safest way to do this. what is the best ways to access the server variable in…
hussian
  • 399
  • 6
  • 19
-2
votes
2 answers

If IP addresses can be spoofed so

If IP addresses can be spoofed by creating false or manipulated http headers, and therefore it should not be relied upon in validating the incoming request in our PHP/ASP pages, how come servers take that and rely on it? For example, denying IPs or…
Average Joe
  • 4,521
  • 9
  • 53
  • 81
-2
votes
1 answer

Where can I get a complete list of variables that PHP automatically makes available to my script by looking at the output of the phpinfo() function?

I'm using PHP 7.2.3 on my machine that runs on Windows 10. I've installed PHP using latest version of XAMPP. I come across following text from PHP Manual : $_SERVER is just one variable that PHP automatically makes available to you. A list can be…
PHPLover
  • 1
  • 51
  • 158
  • 311
-3
votes
1 answer

what does this statement returns $_SERVER['SERVER_PROTOCOL']

" : print "$string_message\n"; ?> this piece of code is executing but I don't know why 'SERVER_PROTOCAL' is used and what…
hemanth5636
  • 89
  • 2
  • 9
-4
votes
1 answer

How to save IP address in a registration system?

I have created a code that can register users into the database. But I want save the IP too. Can someone help me with my problem? Because I've never created code with IP, I already try search but nothing. $podeCriarConta = True; …
-4
votes
5 answers

What am I doing wrong

I have been struggling with this for a week or two now, and I just cant seem to resolve it. Here is my Script:
neojakey
  • 1,633
  • 4
  • 24
  • 36
1 2 3 4 5
6