PHP Training in Chandigarh
What is php
and Why PHP is used?
PHP is
probably the most popular scripting language on the web. It is used to enhance web pages. With PHP, you can do things like
create username and password login pages, check details from a form, create
forums, picture galleries, surveys, and a whole lot more. If you've come across
a web page that ends in PHP, then the author has written some programming code
to liven up the plain, old HTML.
PHP is known as a server-sided language. That's because the PHP doesn't get
executed on your computer, but on the computer you requested the page from. The
results are then handed over to you, and displayed in your browser. Other
scripting languages you may have heard of are ASP, Python and Perl. (You don't
need to know any of these to make a start on PHP. In fact, these tutorials
assume that you have no programming experience at all.)The most popular explanation of just what PHP stands for is "Hypertext Pre-processor". But that would make it HPP, surely? An alternative explanation is that the initials come from the earliest version of the program, which was called Personal Home Page Tools. At least you get the letters "PHP" in the right order!
But PHP is so popular that if you're looking for a career in the web design/web scripting industry then you just have to know it! In these tutorials, we'll get you up and running. And, hopefully, it will be a lot easier than you think.
Top of Form
Bottom of Form
What
is PHP?
PHP (recursive acronym for 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.
Nice, but what does that mean? An
example:
Example #1 An introductory example
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Example</title>
</head>
<body>
<?php
echo "Hi, I'm a PHP script!";
?>
</body>
</html>
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Example</title>
</head>
<body>
<?php
echo "Hi, I'm a PHP script!";
?>
</body>
</html>
Instead of lots of commands to output
HTML (as seen in C or Perl), PHP pages contain HTML with embedded code that
does "something" (in this case, output "Hi, I'm a PHP
script!"). The PHP code is enclosed in special start and end
processing instructions <?php
and ?> that allow you to
jump into and out of "PHP mode."
What distinguishes PHP from
something like client-side JavaScript is that the code is executed on the
server, generating HTML which is then sent to the client. The client would
receive the results of running that script, but would not know what the
underlying code was. You can even configure your web server to process all your
HTML files with PHP, and then there's really no way that users can tell what you
have up your sleeve.
The best things in using PHP are
that it is extremely simple for a newcomer, but offers many advanced features
for a professional programmer. Don't be afraid reading the long list of PHP's
features. You can jump in, in a short time, and start writing simple scripts in
a few hours.
Although PHP's development is
focused on server-side scripting, you can do much more with it. Read on, and
see more in the What can
PHP do? section, or go right to the introductory tutorial if you
are only interested in web programming.
How to Run Php Program?
- WAMP Server: this server is a web development platform which helps in creating dynamic web applications.
- XAMPP Server: It is a free open source cross-platfrom web server package.
http://www.apachefriends.org/en/xampp-windows.html
After downloading, just follow the following step to start xampp server:
Step1
Install XAMPPStep2
Assume you installed xampp in C Drive.Go to: C:\xampp\htdocs
Create your own folder, name it as amit.
Step3
Now create your first php program in xampp and name it as “amit1.php”:<html>
<head><title>Amit4 php</title></head>
<body>
<?php
# operator
print "<h2>php program to add two numbers...</h2><br />";
$val1 = 20;
$val2 = 20;
$sum = $val2 + $val2; /* Assignment operator */
echo "Result(SUM): $sum";
?>
</body>
</html>
Step4
Now double click on “XAAMP CONTROL PANEL” on desktop and START “Apache”(icon also appears on the bottom)
Step5
Type localhost on your browser and press enter:It will show the following:
Step6
Now type the following on browser:http://localhost/amit/
Below screenshot shows php files created under folder “amit”
Step7
Click on “Amit4.php” and it will show the following:The RESULT is 40 by adding both the values.
This way you can run your php program in XAMPP server…
its good and quite informative
ReplyDeleteAll are saying the same thing repeatedly, but in your blog I had a chance to get some useful and unique information, I love your writing style very much, I would like to suggest your blog in my dude circle, so keep on updates.
ReplyDeleteOnline Reputation Management
This blog is having a wonderful talk. The technology are discussed and provide a great knowledge toall. This helps to learn more details about technology. All this details are important for this technology. Thank you for this blog.
ReplyDeleteDigital Marketing Company in Chennai
In webliquid Chandigarh you can learn different modern techniques of digital marketing and PHP course contact us soon.
ReplyDeletehttp://www.webliquidinfotech.com/php-training-chandigarh/
+91 - 75089-20783 , +91 - 95012-93387
Thanks for the information.
ReplyDeleteMorph academy offers various online marketing and PHP training courses in Chandigarh. For more information, contact the website given below.
http://www.morphacademy.com
A nice article. I totally love the way you presented the topic. Hope to see you post soon again.
ReplyDeletePYTHON Training in Chennai