Jump to content

Tell if a site is running PHP or ASP

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
dirkfirst

dirkfirst

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 354 posts
How can you tell if a site is running PHP or ASP? That is, if you can not see the file extensions like .php or .asp.

#2
Crane

Crane

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 398 posts
I think you can look at the return headers somehow but I am not sure.

#3
Dan

Dan

    Programmer

  • Members
  • PipPipPipPip
  • 145 posts
Thats correct crane - you need to look at the HTTP response headers,
if the server is PHP it will most likely say something like

Quote

X-Powered-By: PHP/4.4.2

and if it is asp it will say something like:

Quote

Server: Microsoft-IIS/5.0


#4
dirkfirst

dirkfirst

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 354 posts
Great, thank you guys! This helps a lot!

#5
Guest_Kaabi_*

Guest_Kaabi_*
  • Guests
This is helpful to know, except I can't see myself usefully applying this knowledge anytime in the near future.