new self: self points to the class in which it is written. self refers to the same class in which the new keyword is actually written. New static static, in…
PHP
PHP – Hypertext Preprocessor is a widely used, server-side scripting language but also a general-purpose scripting language that is most suited for web development. The original PHP project, as invented by Rasmus Lerdorf, stood for Personal Home Page. Nowadays, it stands for the recursive acronym PHP: Hypertext Preprocessor.
PROBLEM : The question is simple. we have a for each loop in our code: In this loop, we want to react differently when we are in first or last…
Date is important aspect in developing applications such as storing user registration date time ,last login time, date of birth etc. Mysql has standard format that is YYYY-mm-dd and but…
SOLUTION 1 As you probably already know, session_start is an in-built PHP function that will start a new session. The problem is: If you call it more than once, your…
Double and Triple equals operator in PHP A double = sign is a comparison and tests whether the variable / expression / constant to the left has the same value…
Regular HTTP: Before you can understand these technologies, you have to understand classic HTTP web traffic first. A client requests a webpage from a server. The server calculates the response The…
php multithreading thread-safety packages thread context Thread Safety: Thread Safety means that binary can work in a multithreaded webserver context, such as Apache 2 on Windows. … For multithreaded webservers, such as IIS5 and IIS6,…
Available Visibility in PHP Classes There are 3 type of visibility available in php for controlling your property or method. Public: Public method or variable can be accessible from anywhere….
Notice: Undefined variable Default value of an uninitialized variable is problematic in the case of including one file into another which uses the same variable name. It is also a…
PROBLEM To include a css file to .php file. Inside the .php file, We have; [ad type=”banner”] We want it like this.. But obviously that doesn’t work. Is there any…