For the error reporting system I am trying to get some info onto the name of the server currently running. I am using the server signature to try and find the server and its version. I however have only apache so I was wondering if someone with nginx or IIS would run the following php script and reply with the output so that I am able to see the output of different server softwares so as to craft my regular expression.
<?php echo $_SERVER["SERVER_SOFTWARE"]; echo "\n\n"; echo $_SERVER["SERVER_SIGNATURE"];
On Sat, Jul 20, 2013 at 3:06 AM, Mohamed Ashraf < mohamed.ashraf.213@gmail.com> wrote:
For the error reporting system I am trying to get some info onto the name of the server currently running. I am using the server signature to try and find the server and its version. I however have only apache so I was wondering if someone with nginx or IIS would run the following php script and reply with the output so that I am able to see the output of different server softwares so as to craft my regular expression.
<?php echo $_SERVER["SERVER_SOFTWARE"]; echo "\n\n"; echo $_SERVER["SERVER_SIGNATURE"];
With nginx on ubuntu, with above lines, I get:-
nginx/1.2.1
For apache, SERVER_SIGNATURE works too:- Apache/2.2.22 (Ubuntu) Apache/2.2.22 (Ubuntu) Server at 127.0.0.1 Port 81
I tried SERVER_ADDR and SERVER_PORT, then it's similar for apache and nginx :- nginx/1.2.1 127.0.0.1:80
Apache/2.2.22 (Ubuntu) 127.0.0.1:81
On Sat, Jul 20, 2013 at 2:36 AM, Atul Pratap Singh atulpratapsingh05@gmail.com wrote:
On Sat, Jul 20, 2013 at 3:06 AM, Mohamed Ashraf mohamed.ashraf.213@gmail.com wrote:
For the error reporting system I am trying to get some info onto the name of the server currently running. I am using the server signature to try and find the server and its version. I however have only apache so I was wondering if someone with nginx or IIS would run the following php script and reply with the output so that I am able to see the output of different server softwares so as to craft my regular expression.
<?php echo $_SERVER["SERVER_SOFTWARE"]; echo "\n\n"; echo $_SERVER["SERVER_SIGNATURE"];
With nginx on ubuntu, with above lines, I get:- nginx/1.2.1
since there was two echos but apparently only one output from nginx. can you tell me which one actually produced this output the server_signature or the server_software
For apache, SERVER_SIGNATURE works too:- Apache/2.2.22 (Ubuntu) Apache/2.2.22 (Ubuntu) Server at 127.0.0.1 Port 81
was this the only output you got? mine is like a long string mentioning everything from php version to loaded modules.
I tried SERVER_ADDR and SERVER_PORT, then it's similar for apache and nginx :- nginx/1.2.1 127.0.0.1:80
Apache/2.2.22 (Ubuntu) 127.0.0.1:81
-- Atul Pratap Singh http://blog.atulsisodia.in/
thank you a lot for this I appreciate it.
See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clk... _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
-- Mohamed Ashraf
On Sat, Jul 20, 2013 at 6:29 AM, Mohamed Ashraf < mohamed.ashraf.213@gmail.com> wrote:
On Sat, Jul 20, 2013 at 2:36 AM, Atul Pratap Singh atulpratapsingh05@gmail.com wrote:
On Sat, Jul 20, 2013 at 3:06 AM, Mohamed Ashraf mohamed.ashraf.213@gmail.com wrote:
For the error reporting system I am trying to get some info onto the name of the server currently running. I am using the server signature to try and find the server and its version. I however have only apache so I was wondering if someone with nginx or IIS would run the following php script and reply with the output so that I am able to see the output of different server softwares so as to craft my regular expression.
<?php echo $_SERVER["SERVER_SOFTWARE"]; echo "\n\n"; echo $_SERVER["SERVER_SIGNATURE"];
With nginx on ubuntu, with above lines, I get:- nginx/1.2.1
since there was two echos but apparently only one output from nginx. can you tell me which one actually produced this output the server_signature or the server_software
I meant SERVER_SOFTWARE worked for both nginx and apache and SERVER_SIGNATURE worked only for apache.
For apache, SERVER_SIGNATURE works too:- Apache/2.2.22 (Ubuntu) Apache/2.2.22 (Ubuntu) Server at 127.0.0.1 Port 81
was this the only output you got? mine is like a long string mentioning everything from php version to loaded modules.
Yes, this is what I get with apache (SERVER_SOFTWARE and
SERVER_SIGNATURE), can't guess why is it different from yours..
Hi
Dne Fri, 19 Jul 2013 23:36:06 +0200 Mohamed Ashraf mohamed.ashraf.213@gmail.com napsal(a):
For the error reporting system I am trying to get some info onto the name of the server currently running. I am using the server signature to try and find the server and its version. I however have only apache so I was wondering if someone with nginx or IIS would run the following php script and reply with the output so that I am able to see the output of different server softwares so as to craft my regular expression.
<?php echo $_SERVER["SERVER_SOFTWARE"]; echo "\n\n"; echo $_SERVER["SERVER_SIGNATURE"];
For lighttpd it is:
SERVER_SOFTWARE: lighttpd/1.4.31 SERVER_SIGNATURE: