Category - PHP Intermediate

Earn $$$ with Bitcoin Mining , Start Today .

Earn $$$ with Bitcoin Mining , Start Today .

By Imran Iqbal In PHP Intermediate -

Sign up today  About Genesis Mining Genesis Mining was founded at the end of 2013. They got to know each other by using the same platform for buying and selling Bitcoins. As our company and its user base grew, new mining farms were built up and several additional people hired, specificall...

PHP the right way - PHP Package Management with Composer

PHP the right way - PHP Package Management with Composer

By Imran Iqbal In PHP Intermediate -

Hi , Lets find an easy way for package management . Do you remember days we use to download ,extract files and paste inside our libraries folder and manually require them , thats all old style . I will show you how to manage your packages using composer which can do autoloading classes ,...

PHP File Upload

PHP File Upload

By Irfan Iqbal In PHP Intermediate -

​In this post let us study how to upload a temporary file on the server.For which we have to  make a HTML form for uploading file . <html> <body> <form action="fileupload.php" method="post" enctype="multipart/form-data"> <label for=&...

Cropping Images Using Jcrop In PHP

Cropping Images Using Jcrop In PHP

By Irfan Iqbal In PHP Intermediate -

In this post let us study how to crop images with Jquery and PHP using jcrop javascript library.At first you nees to download a jcrop javacript library from http://deepliquid.com/content/Jcrop_Download.html . After downloading copy the jcrop.js file into your root folder . Now l...

PHP Arrays

PHP Arrays

By Irfan Iqbal In PHP Intermediate -

​ An array is a special variable, which can hold more than one value at a time.If you have a list of items (a list of car names, for example), storing the cars in single variables could look like this Syntax: array( key=>value, key2=>value2, key3=>value3, ......

PHP loops

PHP loops

By Irfan Iqbal In PHP Intermediate -

Loops are used to execute a piece of code continuely until the given condition becomes false .There are four types of loops . while loop  do while  for loop foreach loop While loop A while loop is a control flow statement that allows code to be...

Creating first PHP project

Creating first PHP project

By Irfan Iqbal In PHP Intermediate -

Creating a PHP file : For creating a php file follow the steps given below . goto C:\xampp\htdocs . Create a folder in htdocs example:firstproject . In that folder create one text file example: new text document . save that document as .php extension. Basic PHP syntax:...

Find Nth Image in HTML

Find Nth Image in HTML

By Imran Iqbal In PHP Intermediate -

Using below function you can find Nth Image in your HTML Code function getImageInHTML($post, $default, $i = 0) { preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post, $matches); if( isset($matches[1][$i]) && !empty( $matches[1][...