Introduction to PHP - Loyal Code Lab

Untitled-1

We Love Coding , We Love Designing , We Love Learning

Sunday, 2 December 2018

Introduction to PHP

Introduction to PHP

In this article we'll discuss about PHP programming Server side scripting language. and how to develop server side back-end using PHP.

Server Side Scripting:

Server side scripting is a development process in web application. It deals with Web server manipulating resources Database servers and sending useful information to client by hiding the internal architecture and logics behind a website so that the website can be a User friendly. and Web Security. There are many server side scripts. but i prefer PHP is a best language other than ASP .NET


PHP (Hypertext Preprocessor):

PHP Server Side Scripting: Hypertext Preprocessor (earlier called, Personal Home Page) PHP. It's a Server side Script Open Source language that means you can use that in your website for no cost. It's very lite looking language that is running on Apache web server But it's very strong and powerful language. It is easy to develop website back-end with PHP so many developers use this language to develop website back-end as well as some of the RESTful frameworks and MVC also developed by this language.


How PHP is best for server side development?

It's best because it runs freely on Apache server no other dependency is required to develop PHP .PHP has vast library of extensions. and easy to use and implementation is also easy .Flexible language It is platform diverse it can be run on many OS and web server without any dependency just apache server is enough to run. The only one language which is highest used in development of MVC frameworks and RESTful is nothing but PHP




Starting up with PHP basics:

if you want to use PHP in your development its just easy ...


Windows Users:

You can download XAMPP console which contains all the PHP library and Apache server with Mysql database Filezilla FTP client Download and run the .exe executable follow NEXT button read instructions and get it after you get Console just press start button to start apache server .


LINUX User:

just go to terminal and start apache2 service.

Service apache2 start

If you don't have the Apache server in linux you can run this command to get apache server

apt-get install apache2

apt-get install php7.0 php-common php-json

also you can get XAMPP for Linux clients you can download and install that same in Linux to Run your first Linux script , windows users can go to xampp folder find in C drive or installation path which you've specified while installing and find htdocs folder in it create a file with extension .php write the php file Linux users can find it on location /var/www/html/


PHP limiters:

<?php ?> thease are the PHP limiters that you can use to write PHP code.
PHP code only executes if you write in between this limiters you can embed HTML inside php or also PHP inside HTML using this PHP limiters.
Eg: <?php echo "Hellow world"; ?>


PHP variables:

There is no such keyword like Javascript has var for variable. you can directly write a PHP variable using $ sign before word eg: $variable

Try this PHP code in your system to test variables and echo keyword to open the file in browser just go to localhos/yourfilename.php

I hope this article is helpful in understanding PHP variables and limiters server side scripts stay tuned for further updates

<?php $name = 'john doe';
//variable declaration in php is easy just $ sign before word
echo 'myname'. $name;
$name = 'john doe';
echo $name;
echo $name . ' <br> ';
//echo is used to show output to web page
echo 'my name is'. $name . '<br>';
/*Comments in php */
?
Untitled-1



5 comments:

  1. blank
  2. blank

    All 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.
    Software Testing Training in Chennai
    Software Testing Course in Chennai
    Angularjs Training in Chennai
    Selenium Training in Chennai
    German Language Course in Chennai
    AWS Training in Chennai
    Big Data Analytics Courses in Chennai
    Software Testing Training in Porur

    ReplyDelete
  3. blank
  4. blank
  5. blank