answersLogoWhite

0


Best Answer

The code on the server-side of website is not visible on most websites because it is not intented to be viewed. That code is intented to be parsed by the server and related code compiled, ran by the compiler and the generated output is then served as the website content. When you visit a website, your primary goal is to use it, not view the code behind.

When you request a web page, The requested page source is retrieved and first processed by the web server. Processing includes converting server side scripting to the code that is sent to the web browser client. This happens with PHP scripting. The results are sent to the web browser. The web browser than processes the page for displaying including the processing of javascript and java code

You can only view the source code seen by the web browser. That is not the same as the original page image that is stored on the server.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why you can not see the code in the server side?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why you do not see any PHP code when you view the source code of a PHP page in the browser?

PHP is server-side, the browser itself does not interpret it. Rather, the browser sends a query to the server, and the PHP scripting generates custom HTML document. It is this HTML that you are seeing the source code of.


What is client program?

As far as web programming is concerned, client side programming is code that runs in the web browser, rather than the web server. JavaScript is an example of client side scripting because the code is sent to the browser, at which point it is executed. PHP is an example of server side scripting because the code is executed on the server, and the resulting code is sent to the browser and displayed.


Is JSP server side language?

Yes... Java server page is server side language . but it can create client side code in format of HTML . When the request send the web server the jsp process the HTML request and HTML response. by Arulmurugan C


Why java script is not a server side programming?

It is not impossible to code on server side using javascript as there are frameworks available today which lets use of javascript on server side. But usage of this is not that high as most people prefer the normal way of using AJAX if they want javascript to interact with a server side language.


What is server side scripting explain with illustration?

Server side scripting means that all of the code is executed on the server before the data is passed to the user's browser. In the case of PHP this means that no PHP code ever reaches the user, it is instead executed and only the information it outputs is sent to the web browser.


What is client-side scripting language?

A server-side scripting language is one that resides on the server. Whereas client-side scripting happens inside the users browser, after they've downloaded the code, server-side languages work before the file is sent from the server. Server-side languages tend to deal with more "heavy lifting" than client side. They retrieve records from databases, maintain state over the stateless HTTP connection, and do a lot of things that require more security than JavaScript alone can provide. Because they reside on the server, these programs never have their source code exposed to the user. JavaScript source code must be available to the client by definition. Some server-side languages are: C, PHP, Ruby, Python, JavaServer Pages, ColdFusion, ASP, and Perl.


Which language is secure among php and asp.net?

Both are server side languages and both are more or less secure. End User can only see the output of both, not the actual code


What is the difference between client side scripting and server side scripting languages?

Best Practice : Use both The Cons of using one or the other : With client side validation only, if a user disables JavaScript, then no validation will occur. With server side validation only, there are more return trips to the server which in turns uses more resources and slows down the site when a client side script could have done the validation without the server. The Pros of having both : The data will always be validated, whether or not the client has JavaScript enabled or not. There will be less server strain with the client side validation. The client can fix form errors faster with instant client side notifications. The data will have a bit more integrity going through the dual validation process.


Is ruby programming client side or server side?

Ruby is a server-side language.


What is a client side parser?

In general, a parser is a tool that interprets code.We talk about server-side parsers if those tools parse the code they receive before sending a result (i.e. the web page) to the client PC, while client-side parsers process code directly on the client PC.PHP is an example language that is parsed server-side, JavaScript is an example for a client-side language.


What is a client-side parser?

In general, a parser is a tool that interprets code.We talk about server-side parsers if those tools parse the code they receive before sending a result (i.e. the web page) to the client PC, while client-side parsers process code directly on the client PC.PHP is an example language that is parsed server-side, JavaScript is an example for a client-side language.


What are client side and server side scripting?

Client side scripting is a script, (ex. Javascript, VB script), that is executed by the browser (i.e. Firefox, Internet Explorer, Safari, Opera, etc.) that resides at the user computer. Server side scripting, (ex. ASP.Net, ASP, JSP, PHP, Ruby, or others), is executed by the server (Web Server), and the page that is sent to the browser is produced by the serve-side scripting. So when a server sends out a page, it executes server-side scripts, but does not execute client-side scripts. Once the browser receives the page, it executes the client-side scripts. Server side scripting can connect to databases that reside on the web server or another server reachable from web server. Client side scripting cannot do that. Server side scripting can access the file system that reside at the web server, client side cannot. Server side scripting can access settings belong to Web server while client side cannot. Client side scripting can access files and settings that are local at the user computer. Client side scripting consumes cycles from user's computer not web server one, while server side scripting consumes cycles form web server one.