Category : "Tutorial"

Php web development tutorials

Php array of iso 3316 country list

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. https://github.com/umpirsky/country-list Here is a sample of the array <?php ...

Websockets with php – tutorial on basics

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 websocket connections are basically tcp socket connections ...

Convert pdf to image with imagemagick in php

Imagick In a previous article we saw how to use to create a snapshot or thumbnail of the pdf. Now we are going to do the same in php using the Imagick class which provides the bindings for imagemagick library inside php. The library is available in the form of a class Imagick that does all the job of imagemagick ...

Php curl tutorial – making http requests in php

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, proxies, cookies, user+password authentication (Basic, Digest, NTLM, ...

Generate code39/isbn barcodes in php with mpdf

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 need to be printed from php. There ...

6 tips to learn PHP fast and effectively

Php is today the most widely used language/platform for development of web based applications and websites. At the same time it is the easiest to learn and use. There are lots of free tutorial websites out there that can be followed to learn php without much effort. Along with these tools having the right approach can speed up the learning ...

Php tutorial – Parse html DOM with DOMDocument

Domdocument The domdocument class of Php is a very handy one that can be used for a number of tasks like parsing xml, html and creating xml. It is documented here. In this tutorial we are going to see how to use this class to parse html content. The need to parse html happens when are you are for example writing scrapers, ...

UDP socket programming in php

In a previous article we learnt about writing simple server and clients using TCP sockets in php. In this article we are going to use udp sockets for the same. UDP sockets are much simpler to work with since they are connection-less. A udp server just has an socket that waits to receive some data and a socket client can send ...

Javascript style object literals in PHP

Javascript object literals look like this var a = { 'var_1' : 'Hello' , 'var_2' : 'World' , 'get' : function() { alert(a.var_1); } }; As similar thing can be done in PHP using anonymous functions (since 5.3) Quick example $a = [ 'var_1' ...

PHP Socket programming tutorial

Php and tcp/ip sockets This is a quick guide/tutorial to learning socket programming in php. Socket programming php is very similar to C. Most functions are similar in names, parameters and output. However unlike C, socket programs written in php would run the same way on any os that has php installed. So the code does not need any platform specific ...

Pages:«123456»


Connect with us