PHP and ASP.NET are server side technologies thats provides huge out of box
framworks to devlop web application
THE MAIN DIFFERENCES ARE HERE
it is open source technology which can be used for free
it is programming language used for creat web application
php was launched by rasmus lerdorf in 1995
php is also run in LINUX operating system
php works with MYSQL database my sql database is also free
php execution is faster because php uses in-buit memory space
php coding is very easy compared to other programming language.
many useful tools are available for free in php
php syntax are similar to C and C++
ASP.NET is miscrosoft technology that is expansive in price
asp.net is a platform in which programming languages such as VB.NET and C# can be used to create asp.net application
asp.net is used only in internet imformation server(IIS)
asp.net is launched by microsoft in 2002
asp.net needs windows platform which is not available for free
asp.net works with windows platform if asp.net used in linux then asp apache has to be installed in server
tools are not free available in asp.net
the syntax and concepts of asp.net are simlar to the syntax of visual basic.
While PHP 5 was purposely designed to be as compatible as
possible with previous versions, there are some significant
changes. Some of these changes include:
- A new OOP model
based on the Zend Engine 2.0
-
A new extension for improved MySQL support
-
Built-in native support for SQLite
-
A new error reporting constant,
E_STRICT,
for run-time code suggestions
-
A host of new
functions to simplify code authoring (and reduce the need to write your own
functions for many common procedures)
2) Stay Away from Anything Ending With _once()
3) Develop With Error Reporting On
4) Use A Framework If You Need One
5) Use PHP's Inbuilt Functions
6) Protect Your Database
7) Use POST Not
8) Draw Before You Code
9) Understand Your Project
10) Code Code Code
"PHP" is a very popular programming language used to design website. There
are more than 20 million
websites designed using "PHP". It must have its
advantages. Also PHP is not perfect, it has its limitations.
Why is "PHP"
so popular? What are the advantages of "PHP"? What are limitations of "PHP"?
- Open source: It is developed and maintained by a large group of PHP
developers, this will helps in creating a support community, abundant
extension library.
- Speed: It is relative fast since it uses much system resource.
- Easy to use: It uses C like syntax, so for those who are familiar
with C, it’s very easy for them to pick up and it is very easy to create
website scripts.
- Stable: Since it is maintained by many developers, so when bugs are found, it can be quickly fixed.
- Powerful library support: You can easily find functional modules you need such as PDF, Graph etc.
- Built-in database connection modules: You can connect to database
easily using PHP, since many websites are data/content driven, so we
will use database frequently, this will largely reduce the development
time of web apps.
- Can be run on many platforms, including Windows, Linux and Mac, it’s easy for users to find hosting service providers.
- Security : Since it is open sourced, so all people can see the
source code, if there are bugs in the source code, it can be used by
people to explore the weakness of PHP
- Not suitable for large applications: Hard to maintain since it is not very modular.
- Weak type: Implicit conversion may surprise unwary programmers and
lead to unexpected bugs. For example, the strings “1000” and “1e3”
compare equal because they are implicitly cast to floating point
numbers.
"echo" and "print" are more or less the same
They are both used to output data
to the screen.
The differences are small: echo has no return value while print has a return value of 1 so it can be
used in expressions. echo can take multiple parameters
while print can take one argument. echo is
marginally
faster than print.
PHP( Hypertext Preprocessor) is a widely-used open source general-purpose scripting language
that is especially suited for web development and can be embedded into HTML.
-it is open sorce language
-In php css are used for design purpuse
What is wamp?????
Acronym for Windows/Apache/MySQL/PHP, Python, (and/or) PERL
The acronym WAMP refers to a set of free (open source) applications, combined with Microsoft
Windows, which are commonly used in Web server environments. The WAMP stack provides
developers with the four key elements of a Web server: an operating system, database, Web
server and Web scripting software.
The combined usage of these programs is called a server stack. In this stack, Microsoft Windows
is the operating system , Apache is the Web server, MySQL handles the database
components, while PHP, Python, or PERL represents the dynamic scripting languages.