An easy way to setup a nice & clean UI, and responsive UI. Bootsrap use HTML5 & CSS3. Please ensure you have the following: Include the following in head Include the following at the bottom – before end of body tag – to make sure the page load fast. Here is the screen shot of… Read More »
Basically the process is to convert the Session of Server 1, as Cookies. Then in Server 2, we convert back to Session. Just include below class in both server. Use SessionShare::encode(‘sessionpass’,’current_domain’); in Server 1 then redirect to Server 2(use header(‘Location: http://server2.com’)). Then in Server 2, include the same class, decode the Cookies that we created… Read More »
A small function to convert bytes to B, KiB, MiB, GiB, TiB, PiB, EiB, ZiB, YiB.
Overloading in PHP, basically to dynamically create properties and methods I will put some samples on Overloading in Object, Variables, Execution and Methods. There’s few magic method required in Overloading; __set(), __get(), __isset(), __unset(). Overloading in Object Overloading in Variable Overloading in Execution Overloading in Methods There’s differences in Overloading Methods, because we using __call()… Read More »
__autoload() called anytime a new object attempts to be instantiated As a programmer, at least we need to include certain classes or files before we execute files. __autoload() will be a good place to include all required classes or files. But we only able to define only one __autoload() and this may cause problem to… Read More »
$isequal = ($obj1 == $obj2); Comparison Operator(==), checks whether the two objects are the same class and whether all class variables have the same value. $issameinstace = ($obj1 === $obj2); Identity Operator(===), return true if both object variables refer to the same instance of an object.