learnwebcoding
learnwebcoding
Learn Web Coding
20 posts
Learn complete web development for free in a single place with realtime examples. PHP, MYSQL, Laravel, REST API, MongoDB, HTML, CSS, JavaScript, JQuery, Ajax, NodeJs, BootStrap, Third-party API integrations like Google, Facebook, Twitter, AWS etc.
Don't wanna be here? Send us removal request.
learnwebcoding · 5 years ago
Text
About PHP everything you should know before taking any decision
youtube
In today article, we are going to talk about PHP only. So you want to start learning PHP? Or you want to make your career in PHP but you have some doubts are you have read somewhere that PHP is dying OR you have heard that PHP will no longer be in the future You Can't survive on PHP only? There is a very low pay on PHP so what should you do? Right? If this kind of questions come to your mind or you have heard about it and definitely this video is going to help you to make a decision whether you should go with PHP or we should not use PHP. It will be totally your decision. Hello, my name is Durgesh Sahani and from the last 7 years, I am working with PHP. To create this article and I also have taken some help from the online resources like php.net site, Wikipedia and from some other reliable places and also added my own contribution to it. I also have prepared a simple presentation of 7 to 8 slides and video. Definitely, this is going to help you to make you a decision that you should stick to PHP or you should leave the PHP So without wasting your time let's get started. I'll start with PHP introduction you already know that PHP is open source means you no need to pay anything to use it. It’s a server-side scripting language. It is mainly used to develop websites but also you can use it for command-line execution. For example, A CRON Job written in PHP and you want to execute through command line you can do that definitely. It has great documentation if you want to read about a specific function so you can read it through its well-documented documentation. php.net/ is an official website and documentation is available in English, Brazilian Portuguese, Chinese (Simplified), French, German, Japanese, Romanian, Russian, Spanish, Turkish It has a big community, It is widely used server-side scripting language. And have a great marketplace like Composer, PECL, PEAR. Composer - It is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. and if you want to see the packages which are developed in PHP over here we can find it and using composer you can download it and you can use it to your program without taking care about the third party package because everything every required dependency will be managed by the composer so again this is a great help. PECL - PHP Extension Community Library This is a PHP official community website where you can go and browse the packages, download the DLL files, include in your PHP working folder, enable it and use is like predefined libraries to your project similarly. These libraries are written in C language or some other languages and DLL will be provided to you so this is what PECL PEAR - PHP Extension Application Repository This is the official application repository website here they have listed all the packages these all the packages are completely written in PHP only. You can download it and use it for your program. Supports almost all the database relational and non-relational so what do you mean by that - by default most developed using MySQL with it but you can use PostgreSQL, you can use MSSQL (Microsoft SQL) Oracle DB even on non-relational(no-SQL) database is like MongoDB. It provides the required library for all these kind of databases. Let's talk about PHP frameworks. These frameworks are used to create a website. They have a great list of features on top of PHP, which will reduce your time while developing your website. There is a big list of frameworks are built on PHP but I have listed top 10 frameworks here: Laravel Symfony Zend Framework( Zend Framework is created by is Zend Organization which maintain the PHP) CodeIgniter CakePHP FuelPHP Yii Phalcon Slim PHPixie I hope you have heard about these frameworks. There are several frameworks is created and which will help you to start very easily. I also want to highlight some of the CMS(Content Management System) builds in PHP. CMS are the tools which are used to create, edit, publish content. Whenever you thought to design a website the first things come to your mind is WordPress by using this WordPress you can create your own website you can create custom plugins you can create themes and within 5 minutes your website will be ready. WordPress Joomla Drupal Magento (Magento is for E-commerce website if you want to create within some couple of minutes I will be ready with your e-commerce websites) OpenCart SilverStripe Modx Concrete5 PHP Fusion PHPWiki So all these CMS are built in PHP and making developers job easy. The next point, and it's very important you should not miss it why big companies are investing times, money and resources to create libraries for PHP? and not only that creating there also maintaining it what I mean by this line is see PHP previously the PHP was 5.6 or 5.4 any language any company have created a library for 5 then as PHP 7.X is released so there creating a new library to support latest PHP, they are maintaining as well. Companies like Google, Facebook, Microsoft Amazon continuously developing their library and maintaining for PHP and not only that but also making their could infrastructure ready for PHP. Many payment gateways almost all payment gateways developing and giving support for their libraries for PHP each version. And every SMS/Email gateway/service provider also creating and maintaining libraries for PHP. If PHP is going to die then why this kind of companies are investing their time, money, resources and infrastructure to develop this kind of library and maintain it why right?? So obviously you can say that because they want to sell their products but what I am trying to say here is if they know that PHP is going to die or there is no future of PHP why still they are investing their time, money, resources and all other things. right?? So definitely it makes sense so that's why I have put these points here. Again one important point is, what's new in PHP not talking about previous one year older one and talking about the 7x and letter one ok so in PHP 7 the performance of PHP is increased by 50% I just wanted to cover 2.1 only performance in security the performance is tuned by I mean increased by 50% and how they have done it they have made some changes in the core functionality of PHP now the PHP consume less RAM, less memory but perform well. so ZEND organization you have heard about Zen engine previously send engine 2 was there which was used with PHP 5.6 but now they have a developed a new engine that is called ZEND ENGINE 3 now and they have tuned core functionality, core libraries of PHP and that's the reason is why the performance of PHP is increasing by almost 50%. And the second point I want to cover is a security many of you have heard that PHP is not secure I mean and obviously I also agree on it. Because the when the initial PHP was developed in 1995 by Rasmus Lerdorf in that time it was not meant is a programming language at that time he wanted to solve some sort of problem and for that he has created something, some tools at that time it was not a programming language letter in PHP version 3 was released at that time it was somehow a programming language to obviously he was not thought about the security point of view but now it's very popular programming language so they are doing the best job in this should have you have got that PHP has deprecated this function PHP had to remove the support of this library so what they trying to do is there trying to remove all the vulnerable functions libraries from the PHP. and somewhere I have read that hackers 10x smarter than developers so it's developer job as well that you should check your application right?? for example see you have built up your great machine and you have saved all the information to your files and credentials, password and all the things but you have forgotten to lock your computer OR forget to set a password for your computer then, in that case, it is not secure Right?? Even though you have a great setup of a machine or you have built up a very good home very luxury home but whenever you going out or anywhere you are not locking the door so you are keeping the loop whole open right so as a developer you should also think about these points. So I have mentions of a couple of points which you can take care of while developing your website or applications like PHP has deprecated many vulnerable functions, library. They already have taken removed the possible vulnerable function library from PHP 7.X like mysql_*, mcrypt library, etc. Input fields validation(Sanitization/Escaping) so while parsing any data or while accepting any input from the user you should validate, you should sanitize it, you should escape the special characters, etc. Cross-site scripting (XSS) - XSS is a client-side attack. Hacker tries to inject some javascript code to your request. You can prevent this by parsing and javascript code while saving data in the database. SQL Injection Attacks - Here the target is your database, If someone can access your database then all your sensitive information is gone, like password, credit card details even he can delete your database. You can prevent this by validating all the possible areas from where you are interacting with your database like user input, GET request, etc. Cross-site request forgery XSRF/CSRF - Again Cross-site request forgery is an attack by which someone can perform some action for which they are not authorized. you can prevent this kind of attack by using some token-based request. Securely upload files with all possible validations while uploading a file you should take care of all the validations like if you want to upload only is JPG file or PNG images file then you should validate that at that point that there should not be any .exe file or any other documents should not be uploaded to your server Hide Files from the Browser - Meaning anyone should not be able to access your files directly from the web browser. You can put an index.* or default.* file in each directory or use .htaccess file to set the rules for the same. Session Hijacking - Session Hijacking is also known as cookie hijacking. In this type of attack, someone tries to steal a valid session and perform all the action like a real session. The best way to protect session hijacking is to use SSL. Use SSL Certificates For HTTPs Now let’s talk about the future of PHP developer (completely my point of view): What I think is you can get a Framework specific jobs as a dimension there so many popular frameworks like a Laravel Symphony Zend Framework you can get a job as a Laravel developer this is a beauty of PHP if you look for jobs at any job sites so if you see there will be some jobs where they mention in Laravel developer is required Symphony developer is required to you will get a job in these kinds of frameworks then you can get a job on CMS specific so if your master of WordPress you can get a job as a WordPress developer Magento developer so that's what I have written here you can get a job as a Framework specific you can get CMS specific job even as PHP is written PHP scripting language so you can write some script and execute on the server there are so many tools are written in PHP and supports PHP so many of the tools are used by the DevOps teams there is a chance you can get jobs in DevOps team. and obviously, jobs always will be there for PHP developers no doubts and I also agree that in some cases I have seen PHP developer is paid less than the other developers like Java, .NET but also have seen that there are some Java and .NET developer are getting paid less than the PHP developers so it totally depends on the situations. right?? And while studying and gathering the information’s I found one important link, I want to share with you guy's which is a YouTube link https://www.youtube.com/watch?v=rKXFgWP-2xQ this is a Rasmus Lerdorf and in the video, he has explained everything about PHP the basic history and how the performance is tuned by their guys, how security is enhanced, and all the other things. You should definitely watch this video. And finally, what do you think guy’s please let me know in the comment box and we will discuss these points so this is all about for this article. I hope you understand PHP and hope this will help you to make the decision. Important links: My Persentation https://docs.google.com/presentation/d/18pWfw5f6FEiQQgRcQqd0p7JB7NGIO5Y3bNThuPMLBfs/edit?usp=sharing https://www.youtube.com/watch?v=rKXFgWP-2xQ https://www.php.net/ https://en.wikipedia.org/wiki/PHP https://phptherightway.com/ https://en.wikipedia.org/wiki/Category:PHP_frameworks https://en.wikipedia.org/wiki/List_of_content_management_systems
0 notes
learnwebcoding · 5 years ago
Video
youtube
Docker Tutorials on Windows: Introduction of docker, docker-hub, images, container, compose part1
0 notes
learnwebcoding · 5 years ago
Link
Do you really think PHP is dying? Let's talk about facts Here is the presentation in case you want to refer: https://docs.google.com/presentation/d/18pWfw5f6FEiQQgRcQqd0p7JB7NGIO5Y3bNThuPMLBfs/edit?usp=sharing 
Share, Support, Subscribe!!! Youtube: https://www.youtube.com/learnWebCoding 
Facebook: https://www.facebook.com/learnWebCoding 
GitHub: https://github.com/durgesh-sahani 
0 notes
learnwebcoding · 5 years ago
Video
youtube
Command-line PHP execution
0 notes
learnwebcoding · 6 years ago
Video
youtube
Laravel tutorial: Install laravel part1
0 notes
learnwebcoding · 6 years ago
Video
youtube
Ecommerce website project in php and mysql: Show the product list part1
0 notes
learnwebcoding · 6 years ago
Video
youtube
Nodejs tutorial: NodeJs Introduction, Installation and hello world progr...
0 notes
learnwebcoding · 7 years ago
Video
youtube
AWS - Amazon Web Service introduction part1
0 notes
learnwebcoding · 7 years ago
Video
youtube
CKEditor integration in PHP and MySQL part1
0 notes
learnwebcoding · 7 years ago
Video
youtube
Login with google in php using google client api
0 notes
learnwebcoding · 7 years ago
Video
youtube
Chat application in PHP & MySQL using Ratchet Library
0 notes
learnwebcoding · 7 years ago
Video
youtube
CRUD(Create Read Update Delete) operation on Mongodb in PHP using mongodb library
Setup MongoDB 3.6.3 on Windows 10 in php part1
0 notes
learnwebcoding · 7 years ago
Video
youtube
Dependent Drop Down list In PHP and MySQL using jQuery Ajax
0 notes
learnwebcoding · 7 years ago
Video
youtube
FCM WEB PUSH NOTIFICATION IN PHP/MYSQL FROM LOCALHOST
0 notes
learnwebcoding · 7 years ago
Video
youtube
Sending OTP SMS in PHP from localhost using textlocal
0 notes
learnwebcoding · 7 years ago
Video
youtube
Using bxSlider Dynamic image slider in php and mysql part1
0 notes
learnwebcoding · 7 years ago
Video
youtube
using facebook graph api generate access token in php part 1
0 notes