Category Archives: Tutorial

Php web development tutorials

Php array of iso 3316 country list

By | February 16, 2013

Php applications often need to present the user with a list of countries to select his home country from. The iso 3316 country list contains the name of the countries along with the 2 letter codes. Check out the following project on github that contains the uptodate list of the countries in various formats. Here… Read More »

Websockets with php – tutorial on basics

By | February 12, 2013

Websockets Websockets is a new feature available in browsers as a part of the Html5 specs that allows javascript clients to open bi directional socket connections to a server. Currently all major desktop browsers support the api. Websocket is not an independant socket protocol, but is based on the TCP protocol just like HTTP. Therefore… Read More »

Php curl tutorial – making http requests in php

By | November 6, 2012

Curl According to the official website. curl is a command line tool for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload,… Read More »

Generate code39/isbn barcodes in php with mpdf

By | November 3, 2012

Barcodes Barcodes are used in various business class applications to print information in encoded format such that it can be read later by barcode reading devices. Common places to see barcodes are product covers in shops, membership cards and documents like invoices etc. As php is now increasingly being used to develop such applications, barcodes… Read More »

Javascript style object literals in PHP

By | July 21, 2012

Javascript object literals look like this As similar thing can be done in PHP using anonymous functions (since 5.3) Quick example Looks interesting ? Ofcourse! Since version 5.3 Php added support for closures and that feature has been used above to create javascript style object literals. The use(&$a) expression makes the variable $a available inside… Read More »