0% found this document useful (0 votes)
9 views27 pages

Group Three Final Presentation

The document compares and contrasts server-side and client-side scripting. Server-side scripting occurs on remote computers, so responses are slower than client-side scripting, which occurs locally. Server-side uses languages like PHP, Python, and ColdFusion, while client-side uses JavaScript, CSS, and HTML. Server-side scripting is more secure since scripts are hidden, while client-side scripts are less secure since they are visible. Server-side scripting runs via a web server and occurs on page requests, while client-side scripting runs in a browser and occurs on user input changes.

Uploaded by

christheps100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views27 pages

Group Three Final Presentation

The document compares and contrasts server-side and client-side scripting. Server-side scripting occurs on remote computers, so responses are slower than client-side scripting, which occurs locally. Server-side uses languages like PHP, Python, and ColdFusion, while client-side uses JavaScript, CSS, and HTML. Server-side scripting is more secure since scripts are hidden, while client-side scripts are less secure since they are visible. Server-side scripting runs via a web server and occurs on page requests, while client-side scripting runs in a browser and occurs on user input changes.

Uploaded by

christheps100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 27

Compare & contrast

server-side & client-side


scripting
GROUP ALPHA
Execution environment
The server-side scripting occurs on a remote computer. Thus ,the response we get is slower as
compared to that of the client-side scripting.

The client-side scripting occurs on the local computers. Thus , in this case we get a comparatively
quicker response in comparison with the sever-side scripting.

So we can see that the server-side scripting occurs in remote computers while the client-side scripting
occurs in the local computers.
Languages
Languages like Ruby on Rails , Perl , ASP , Python , Cold fusion , Php ,etc. These language come into
play in the case of server-side scripting.

Languages like VB script , CSS , HTML , JavaScript , etc. These languages are very common in the
case of client-side scripting.
Security
The server-side scripting is way more secure as compared to the client-side one. It is because the
scripts of the server-side stay hidden from any random clients.

The client-side scripts are much less secure as compared to the server-side one. It is because these
scripts don’t stay hidden from any random clients end.
Script running
For server-side scripting, a web server serves as the medium for running it. They create the pages that
one would send to the browser.

The script for the client-side scripting runs by using a browser. It is presented already in any user’s
computer.
Occurance
Server-side scripting occurs whenever a browser initiates a request for it. As a result , many dynamic
pages get created on the basis of several conditions.

Client-side scripting occurs when all the codes that a browser possesses in a page later change/alter
according to any user’s input.
referrence
https://byjus.com/gate/difference-between-server-side-scripting-and-client-side-scripting/#:~:text=The
%20server%2Dside%20scripting%20has,exist%20in%20a%20web%20server.&text=Languages%20li
ke%20Ruby%20on%20Rails,case%20of%20server%2Dside%20scripting
Also we used chatgpt

https://byjus.com/
PHP AS A
LANGUAGE
WE WILL DISCUSS THE PROS AND CONS
OF USING PHP IN THIS PRESENTATION
Here are some
advantages
TRY NOT TO GET LOST
Easy to learn and use
PHP is known for its simplicity and ease of use,
making it a popular choice for beginners and
experienced developers alike.
 Due to its integrated syntax PHP is easy to adjust to
if the programmer is used to a different language.
Platform independence
PHP is a platform-independent language, meaning it can
run on various operating systems such as Windows,
Linux, and macOS
This is good for large scale projects as new equipment
won’t be needed to be bought
Large community and support
PHP has a large and active community, which means there are
plenty of resources, documentation, and support available.

PHP is usually already pre-loaded on some websites
especially share hosting websites like hostgator or
dreamhost
Integration with databases
PHP has strong support for database integration,
especially with popular databases like MySQL, making it
suitable for building dynamic and data-driven web
applications.
Flexibility and scalability
PHP offers both flexibility and scalability, making it a
versatile choice for building websites of any size, from
small to large and complex.
Due to its open-source nature, it helps cut costs when
looking for resources and tested results.
Here are some
disadvantages
HOPE YOUR STILL WITH US
Inconsistent standard library
PHP's standard library can be inconsistent and lacks some
of the modern features found in other languages, making it
less robust in some areas.
 This lack of consistency in design, naming conventions,
or functionality can result in a lack of uniformity across the standard
library of a language. This can make it more difficult for developers
to work with.
Security concerns
PHP has been associated with security vulnerabilities in
the past, and developers need to be vigilant about
writing secure code and keeping their frameworks and
libraries up to date.
This is mostly due to the fact that PHP is open source

which makes it prone to attacks


Performance issues
 While PHP has improved in terms of performance
over the years, it still lags behind some other
languages when it comes to speed and resource
consumption.
Limited debugging tools makes it hard to identify
and fix errors on time
Limited support for
multi-threading
PHP traditionally has limited support for
multithreading, which can limit its ability to handle
concurrent requests efficiently.
Lack of strict typing
PHP is a dynamically typed language, which can lead
to potential errors and bugs that may not be caught
until runtime.
In Conclusion
O V E R A L L , P H P S P O O R D E S I G N M A K E S I T S L I B R A RY U N R E L I A B L E A S M O S T O F T H E
C O D E I S U S U A L LY B A D LY W R I T T E N A N D S O A L O T O F O T H E R P R O G R A M M E R S AV O I D I T
B U T W H E N E X E C U T E D C O R R E C T LY, I T R E A L LY D O E S D E L I V E R . P H P H A S I T S
STRENGTHS AND WEAKNESSES.

• P H P I S A V E RY W E L L I N T E G R AT E D W E B P R O G R A M M I N G L A N G U A G E A S I T I S S O
W I D E LY U S E D A N D D E S P I T E H O W S L O P P Y T H E C O D E M AY B E C O M E D U E TO T H E FA C T
T H AT P H P S D E S I G N A D A P T S F R O M M A N Y D I F F E R E N T O T H E R L A N G U A G E S S U C H A S
C + + A N D P E R L W H I C H M A K E S I T R E A L LY I N C O N S I S T E N T A N D F L A K Y A S I T D O E S N ’ T
R E A L LY H AV E I T S O W N I D E N T I T Y.

• A N D I T S S U I TA B I L I T Y F O R A PA RT I C U L A R P R O J E C T D E P E N D S O N T H E S P E C I F I C
R E Q U I R E M E N T S A N D C O N S T R A I N T S O F T H AT P R O J E C T.
GROUP THREE
WEB TECHNOLOGIES
WAYS OF DISPLAYING OUTPUT IN PHP
INTRODUCTION TO PHP
PHP(hypertext Preprocessor) is a server scripting language which can be used for making dynamic and
interactive web pages, PHP is a widely used, free and efficient alternative to competitor to other server
scripting languages.
Ways one can display out in PHP
USING ECHO STATEMENT
The echo statement is one of the ways to display output in PHP.It outputs one or more strings and
variables and it can take multiple parameters when required and it has no return value.

Echo <h2>PHP is fun!</h2>”;

Echo ”hello world!<br>”;

Echo ”I’m about to learn PHP!<br>”

Echo ”This ”, ”string “,was”, “made”, “with multiple parameters.”;


USING PRINT STATEMENT
The ‘print’ statement is similar to ‘echo’ with differences being it has a return value of 1 so it can be
used in expressions but is marginally slower than “echo”

Print “<h2> PHP is fun!</h2>”

Print “ Hello world!<br>”;

Print “I’m about to learn PHP!”;


USING HTML
PHP can be embedded within HTML, you can use
HTML tags to display output as well.
<!DOCTYPE html>
<html>
<body>

<h1>My first PHP page</h1>

<?php echo "Hello World!"; ?>

</body>
</html>
REFERENCES
https://www.w3schools.com/php/php_syntax.asp

You might also like