1.

Solve : Web Pages!?

Answer»

Hi Every One

I Am Rookie In Web Design ! So Ignore My Foolishness

I SEE Other Web pages like google or other pages in html 

But Why Is ORKUT in .aspx

Is it releated to security?ASP.NET server-side programming. HTML cannot communicate with a web server. PHP or ASP can.Can u pls Explain In brief That .aspx file is outputting HTML. It has to because that's all the browser understands.

By communicating with the server, I mean, for example, connecting to a MySQL database. This forum uses PHP to connect to a database when, for example, I click the "Post" button after typing this message. It connects to a database, inserts the data and then REDIRECTS me to the Web Design forum and a list of topics.The website can have the .ilovepie extension and STILL output HTML.
It depends on how you setup the server.. Quote from: Treval on February 01, 2010, 08:25:24 PM

The website can have the .ilovepie extension and still output HTML.
It depends on how you setup the server..


mmmmm


Pie...


In either case it's not related to security. In this case, it's LIKELY a server-side ASP.NET script that generates the page, much like PHP or ASP or any number of server-side languages. of course if the server admin was weird he might decide that ASPX works just as well for delivering as pure HTML, as Treval pointed out. Of course that means that the admin cannot be trusted since he's crazy.  For security reasons one might TRY to fool an attacker into thinking the site is ASP (.NET) by adding .aspx to every page but in fact the server is using PHP or something else! Like, have .aspx map to .php, lol!Yes, just use htaccess.

Code: [Select]AddType application/x-httpd-php .foo
Then just change all of your file extensions to .foo.


If you don't want to change extensions:
Code: [Select]Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)\.foo$ $1.php [NC]
hello i am new here and i just want to tell you about nothingNo thanks.Webpage Extensions like .aspx is usually used by Web 2.0 services these days. Either .php (PHP) or .asp/.aspx (ASP). They are dynamic pages unlike .html pages.

When I signed up for a Website, I had to get a provider supporting these extensions to increase usability.sigh...

its not the EXTENSIONS that are supported. You could make ASP be a PHP file on a server that didn't support ASP if you wanted, that means that the EXTENSION for ASP would be "supported" but it wouldn't be supporting the use of actual ASP.

Extensions are simply used to determine how the server will deal with the file. if it's a pl file, it might be passed through a perl interpreter server-side that outputs an HTML page. If it's PHP, same story, but with a PHP interpreter, and the same with ASP (which isn't really a language of it's own but rather the ability to use a number of different languages with the same set of ASP objects for returning a response to the browser, which, will be HTML.)

The browser ALWAYS get's something it can understand (well, if everything works). This is always either HTML or XHTML. you cannot read a PHP file directly with a browser- you would just get program code.




Discussion

No Comment Found