php Archive

Code Design Pattern For PHP

Author: | Categories: Code Tricks, PHP, Quick Tips No comments
Code Design Pattern PHP: Code Design patterns not only present useful ways for developing robust software rapidly but also provide a way of encapsulating large data/ideas form outside world in friendly terms. In simple words “Recurring solution for common software development challenges ”. Common Software Development Challenges: Building new application

How to work with header function in PHP – Quick Tips

Author: | Categories: PHP, Quick Tips No comments
Definition: The header() function sends a raw HTTP header to a client. It is important to notice that header() must be called before any actual output is sent. It is a very common error to read code with include, or require, functions, or another file access function, and have spaces or

Magic Functions in PHP – Quick Tips

Author: | Categories: PHP, Quick Tips No comments
Magic Functions in PHP All function starts with double underscore(__) PHP reserves all function names starting with __ It allows to define class functionality without needing to duplicate code. It can be defined inside the class only. It can be triggered at any point of code(event). Magic functions will

PHP Multi threading with Multi Curl Quick Tips

Author: | Categories: PHP, Quick Tips No comments
PHP doesn’t have in-built support for multi threading. Some web applications need to perform several tasks that may take a while to finish. When there are many tasks to execute, it may take a long time to finish all of them if they are executed sequentially, i.e., one after

How to detect Operating System using PHP in webpage

Author: | Categories: Code Tricks, PHP, Quick Tips No comments
In this tutorial we will learn how to detect operating system using PHP in a webpage. Because some time we need to show some links on webpage according to operating system in which it opened. In PHP we can determine operating system information using webpage’s HTTP_USER_AGENT header. Using below