What language is this?

bhupendra2895

New Member
Messages
554
Reaction score
20
Points
0
These are the headers that my browser sent to open https://www.nirvanahq.com
Code:
GET / HTTP/1.1
Host: www.nirvanahq.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9pre) Gecko/20100805 Ubuntu/10.04 (lucid) Namoroka/3.6.9pre
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: chrome://global/locale/intl.properties
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
And these are the headers it recieved in reply.
Code:
HTTP/1.1 302 Found
X-Powered-By: PHP/5.2.11
Set-Cookie: PHPSESSID=p13e1b67jq67lh7gatdf0u8sg0; expires=Wed, 25-Aug-2010 05:31:10 GMT; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: http://www.nirvanahq.com/
Content-Type: text/html
Content-Length: 0
Date: Mon, 23 Aug 2010 05:31:10 GMT
Server: lighttpd/1.4.22

Which clearly suggests it is php and lightpd combination, where php is programming language and lightpd is web-server.Whole credit for this info goes to live http header add-on of Firefox.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
Since you made reference to the view->source, I'm going to assume that you aren't so much interested in the back-end language as what you've seen in the browser. I'll assume that you are familiar with (X)HTML. That leaves the constructs in JavaScript that you may not be familiar with. This stuff:

Code:
var nirvtweets = 
				[
					{ 
						'user' : 'madlift',
						'link' : 'http://twitter.com/madlift/statuses/9169264245',
						'tweet': "Very cool time management/organizer app. Sleek and slick. Has a very mac style to it. Check it out." 
					},
					{ 
						'user' : 'allieseligman',
						'link' : 'http://twitter.com/allieseligman/status/8197738981',
						'tweet': "I'm getting so jealous of my husband. He's becoming quite organized, while I wait for my invite." 
					},
/* --- snip --- */
					{ 
						'user' : '_djh',
						'tweet': "Use #GTD to stay organized? Check out @nirvanahq - potentially the best GTD app yet.",
						'link' : 'http://twitter.com/_djh/statuses/10003509371'
					}

is literal object notation (JSON). It's functionally equivalent to this:

Code:
var nirvtweets = new Array();

nirvtweets_0 = new Object(); 
nirvtweets_0['user'] = 'madlift';
nirvtweets_0['link'] = 'http://twitter.com/madlift/statuses/9169264245';
nirvtweets_0['tweet'] = "Very cool time management/organizer app. Sleek and slick. Has a very mac style to it. Check it out.";
nirvtweets[0] = nirvtweets_0;

nirvtweets_1 = new Object(); 
nirvtweets_1['user'] = 'allieseligman';
nirvtweets_1['link'] = 'http://twitter.com/allieseligman/status/8197738981';
nirvtweets_1['tweet'] = "I'm getting so jealous of my husband. He's becoming quite organized, while I wait for my invite.";
nirvtweets[1] = nirvtweets_1;
.
.
.

Obviously, the literal object notation is a lot less verbose, and can more easily be created from a database query than the second version. That's why it is used so extensively in "AJAX" (which, really, should be called "AJAJ" if you're using JSON rather than XML as the transport format).

The only other possible source of confusion I can see is the jQuery stuff -- the things that begin with $(). jQuery is just a JavaScript library that makes cross-browser web applications easier to develop. There's a major download cost to get the simplicity, but if your <script> tag points to the library kept at the Google code repository, there's a good chance that the user will already have the library cached locally.
 
Top