Hi guys, is it possible to know what programming language (asp,php) was used to code a website. I dont see any .php or .asp extension in the webpages i m looking to get information for. Thanks
Usually, if the webmaster has gone to the trouble of getting rid of file extensions that will tell the language, there isn't another way. It's kinda a security thing. If hackers don't know what language you're using, they can't hack it. There may be other ways to find out, but I don't know. Try contacting the webmaster and asking.
Why do you care anyway? Do you need to know what language to study? Pretty much any mainstream language can be used to do just about anything with a website. You can sometimes find clues about the server environment by validating the HTML, because the validation reads some of the HTTP headers that are being sent. I think it is sometimes possible to find the language used by reading the HTTP headers manually, but I'm not sure because I've never tried it, and I'm sure the server can be configured to not send such information. ***EDIT*** Ok, I figured it out: it's called the 'X-Powered-By' header, and not all servers send it. Here is the X-Powered-By header for php.net : X-Powered-By: PHP/5.1.6 Code (markup): I thought that was funny because 5.1.6 is not the current version. Shouldn't the official PHP site have a current version?!
Use Web-Sniffer View HTTP Request and Response Header -- The response Header includes the server-side language used. BTW, also included is how the page is being served -- content (MIME) type, character encoding and the page source code. Just specify the User-Agent (Browser) you wish to check for and leave everything else at default. James