PHP Archive

Introduction of Web and PHP & Mysql part 1

Introduction of Web and PHP & Mysql In this series of articles we will look into basics of world wide web (commonly know as WWW) and then Php & Mysql. We will work on real world examples and APIs. So let us start. Before diving into world of web development we need to know some

New features in PHP 5.6

New features in PHP 5.6 There are some very exciting features  in PHP 5.6 release. In this article we will look into new features introduced in PHP 5.6. File Upload Limit: Before PHP 5.6 upload limit was less then 2 GB but in PHP 5.6 uploads over 2GB are supported. Variadic Functions: Varidaic functions are

How to upload a file in php

How to upload a file in php In this tutorial we are going to discuss how we can upload a file or image in PHP. File uploads are an important feature for many web applications.  We use file uploads in many website we use like Facebook, or Gmail, Yahoo, Hotmail or in job sits and 

Generate Date from week, day number and year.

PHP has a function named ‘setISODate’.  This function takes year, week number and day as parameter and returns a date. <?php $date = new DateTime(); $date->setISODate(2011,48,4); //year , week num , day echo $date->format('d-m-Y'); //"prints" date here    

PHP – PDO select records from MySql

As Zend has announce not to support mysql_* functions in future version’s of PHP (from PHP 5.5 and onwords). So now these functions will be deprecated.  So now developers should try to use PDO or MySqli extension of  PHP. Here is a small code snippet showing how to select records from Database using PDO.

PHP – Introduction

What is PHP PHP (PHP: Hypertext Preprocessor) is a widely used open source general-purpose scripting language that is especially suited for web development. PHP was developed by Rasmus Lerdrof in 1994. Here are some features of PHP that makes it one of the popular languages in world of web development.