Showing posts with label Php tips. Show all posts
Showing posts with label Php tips. Show all posts

Saturday, 27 June 2015

PHP vs. Node.js: An epic battle for developer mind share 2015

PHP vs. Node.js: An epic battle for developer mind share 2015

PHP GOOD OR BAD – AN OVERVIEW

PHP GOOD OR BAD – AN OVERVIEW

I was thinking since quiet of time, why i found so  much php  haters over internet community. I also worked on php and some other php frameworks like drupal, WordPress etc. I personally found php a easy language to start with. It could be very emotional question to ask any php developer about  PHP VS any other programming language.
AS we know, PHP is being used by more than 80% websites over internet. PHP frameworks and cms like wordpress, drupal , joomla, cake, codeigniter, magneto are being used in many high tech websites. Facebook – the biggest social network and Wikipedia  are in PHP. PHP is good for websites and web applications only. Sometimes i also found php code became dirty and very hard to maintain. But it depends, how you are writing code.
page_php
I will suggest a newbie to learn php along with html and css to develop dynamic webpages. Because its very easy to start with and  understand the web development process. LAMP stack is very popular in web development. Linux Apache Mysql and P – PHP or Python. (Please comment if i am missing something).
Every language has some pros and cons like this PHP has some pros and cons too. I am going to list some advantages points about PHP-
Advantages –
1 -PHP having a huge documentation php.net. You can start in very easy way. It has big open source community, you will find all your answers by just googling.
2 -It’s very easy to install, you can use WAMP or XAMPP as sever with mysql database inbuild.
3 -CMS solves most of problems easily.   WordPress ,drupal , joomle etc  are php built in cms for creating website quickly. All cms have large community to get help.
4- You will get lots of tutorials and blogs to get help while doing php programming. So, you will never feel in any problem.
5- PHP supports OOPS to write maintainable and clean code.
6- You will get major hosting support for php websites.
7 – PHP 5.3  is improved version over the last one.
8 -PHP is most discussed languages over the internet.
9 -You will found more job opening in php other than any programming language. PHP  is not secure but a good programmer takes care of all security parameters while writing the code.
I will not write bad parts of PHP because we the programmers write bad or ugly code. So, we should cleverly solve the issues while blaming languages.
Please write in comments – PHP bad or good.. Thanks.

Saturday, 20 June 2015

10+ Useful PHP Code Snippets For Developers in 2015

10+ Useful PHP Code Snippets For Developers in 2015

Every PHP developer, programmer and web developer requires php snippets as these offer a variety of handy functions which can ultimately end up saving you time. The other way to explain code snippet is that these are a set of commands that can help you save time fulfilling laser-precision tasks in the quickest possible way.

The PHP code snippets have friendly structure which makes them easy to use. Every good developer need to be more productive and give quick results for which to have a set of resourceful snippets is necessary for specific task. At TGZ we are sharing some “Useful PHP Code Snippets for Developers” which contains innumerable useful php code snippets which every developer needs to have in their “toolbox”.


So have a look on “10+ Useful PHP Code Snippets for Developers”. 

Using PHPMailer To Send HTML Emails With Images


Get Country By IP Address in PHP


Get users’ IP Address with PHP


Get short urls for Twitter with PHP


Short URL Function with PHP

  

url, email and ip validation with php


username, password and date validation with php

Unzip a Zip File


Generate An Authentication Code in PHP


Validate email Address


WordPress – Scheduling Posts for RSS


Facebook Comments for WordPress


The Real Way To Check Uploaded File Type