<div dir="ltr">On Sat, Jul 20, 2013 at 6:29 AM, Mohamed Ashraf <span dir="ltr"><<a href="mailto:mohamed.ashraf.213@gmail.com" target="_blank">mohamed.ashraf.213@gmail.com</a>></span> wrote:<br><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On Sat, Jul 20, 2013 at 2:36 AM, Atul Pratap Singh<br>
<<a href="mailto:atulpratapsingh05@gmail.com">atulpratapsingh05@gmail.com</a>> wrote:<br>
> On Sat, Jul 20, 2013 at 3:06 AM, Mohamed Ashraf<br>
> <<a href="mailto:mohamed.ashraf.213@gmail.com">mohamed.ashraf.213@gmail.com</a>> wrote:<br>
>><br>
>> For the error reporting system I am trying to get some info onto the<br>
>> name of the server currently running. I am using the server signature<br>
>> to try and find the server and its version. I however have only apache<br>
>> so I was wondering if someone with nginx or IIS would run the<br>
>> following php script and reply with the output so that I am able to<br>
>> see the output of different server softwares so as to craft my regular<br>
>> expression.<br>
>><br>
>> <?php<br>
>> echo $_SERVER["SERVER_SOFTWARE"];<br>
>> echo "\n\n";<br>
>> echo $_SERVER["SERVER_SIGNATURE"];<br>
>><br>
> With nginx on ubuntu, with above lines, I get:-<br>
> nginx/1.2.1<br>
</div>since there was two echos but apparently only one output from nginx.<br>
can you tell me which one actually produced this output the<br>
server_signature or the server_software<br></blockquote><div><br></div><div style>I meant SERVER_SOFTWARE worked for both nginx and apache and SERVER_SIGNATURE worked only for apache.</div><div style><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">><br>
> For apache, SERVER_SIGNATURE works too:-<br>
> Apache/2.2.22 (Ubuntu)<br>
> Apache/2.2.22 (Ubuntu) Server at 127.0.0.1 Port 81<br>
</div>was this the only output you got? mine is like a long string<br>
mentioning everything from php version to loaded modules.<br>
<div class="im"><br></div></blockquote><div style>Yes, this is what I get with apache (SERVER_SOFTWARE and SERVER_SIGNATURE), can't guess why is it different from yours..</div><div style><br></div><div style><br></div>
<div style><br></div></div>-- <br>Atul Pratap Singh<div><a href="http://blog.atulsisodia.in/" target="_blank">http://blog.atulsisodia.in/</a></div>
</div></div>