How to create a zip file in php

How to create a zip file in php

In this post am going to explain, how to create a zip file in PHP of multiple files and force download the zip file. It is useful for some web projects, that providing the documents according to the selection of files like PDFs, images and docs etc and you can choose the files and download it in zip format. Here is a simple php code to create a zip file …

Continue reading

Difference between mysql and pdo

In this post I am discussing the difference between mysql and pdo with example and explanation. So let’s have a look on this. What is PDO? PDO – PHP Data Objects – is a database access layer providing a uniform method of access to multiple databases. PHP PDO => Database Driver => DATABASE Connection to MySQL database: In mysql function we can connect to the database by following code: In …

Continue reading

Mysql functions deprecated in PHP 5.5

As mysql functions are deprecated from PHP 5.5 and above. PHP offers three different APIs to connect to MySQL. These APIs are mysql, mysqli and PDO extensions. The mysql_* functions are very popular, but their use is not encouraged anymore now. PHP developer team is discussed about the database security and has taken the decision to generate E_DEPRECATED errors when users connect to MySQL, whether through mysql_connect(), mysql_pconnect(). When you …

Continue reading

How to implement Android Splash Screen

splash screen

Splash screen are used in large applications to notify the user that the program is in the process of loading. It provide a feedback of underway process. A progress bar indicates the loading progress , Splash screens used to enhance the look and feel of an application. It may have animation, graphics and sound. Android splash screen are normally used to show some kind of progress to user before app …

Continue reading

Seo Tips and Tricks For Beginners

Search Engine Optimization(SEO) is the process of getting traffic from the free and organic listings on search engines. All major search engines such as Google, Yahoo and Bing have such results, where web pages and other content are shown and ranked based on what the search engine considers most relevant to users. SEO is an art to get yourself in search engine’s results. Here are some important SEO tips and …

Continue reading

Table rate shipping set max limit for the weight

In case of table rate shipping you can set the max limit for the weight by applying this process: 1. in shipping/etc/system.xml for tablerate fields insert these lines Weight Max Limit text 81 1 1 1 2. you can set the default value in shipping/etc/config.xml for tablerate 3. in shipping/model/carrier/tablerate.php put these lines after line 113 now if you have max weight in cart the message will be display on …

Continue reading

Deployment environment in zend application

First development goal for any application is to be able to be deployed in different environments and work with minimal reconfiguration. Zend Framework itself has few specific requirements, so application portability is largely a matter of careful design. Most of the differences between one implementation of an application and another occur during initialization where the configuration settings are read in. In a Zend Framework application, this differentiation most commonly occurs …

Continue reading

Zend custom controller helper

An action helper is a class that plugs into the controller to provide services to actions. They expand a controller’s functionality without using inheritance and so can be reused across multiple controllers and projects. To add Zend custom controller helper we can add it in library. Here I am creating a custom library for our purpose with the namespace ‘App’, so need to add it in application.ini to autoload these. …

Continue reading