Category: PHP

How to fix localhost redirecting to www.localhost.com 0

How to fix localhost redirecting to www.localhost.com

I have got several request that when I browse the site on http://localhost/PROJECTNAME. Then it automatically redirect it to www.localhost.com/PROJECTNAME . These kind of issue can be available with almost all CMS based project...

0

Calling a Stored Procedure from PHP

Calling a stored procedure with PHP only possible after connecting PHP with Mysql. Apart from conventional way of mysql connection . There are two ways to connect PHP with mysql i)    The database independent...

0

How to handle documentRoot using .htaccess

This solution also works in case you are running your website from any particular directory but don’t want to show the code directory into browser URL (Hide codebase directory from showing into browser). RewriteCond...

0

Ruby on Rails vs. PHP

As a web developer we usually get known that ROR (Ruby on Rail) is one of the fastest growing language in the world. But PHP is also a mature language these days so what...

0

PHP Design Pattern

PHP is an open source Language so we are seeing a lot of greate Open source product such as Drupal, Sugar , Magento and lots more..All these are based on certain design pattern. Design...

1

Method Overloading (Function Overloading) in PHP

Function overloading in PHP is not similar to other Programming language. Function overloading is also known as method overloading. Method overloading in PHP is supported by using two magic functions i) __call : This...

5

Property Overloading in PHP

Overloading in PHP handled in different manner which is not similar to other programming language.With PHP overloading you can dynamically create properties and methods.These entities are processed by introducing some special methods which are...