Category: PHP

Installing Yii Framework in XAMPP

Yii is a component-based high-performance PHP framework. Yii provides nearly every feature needed by today’s Web 2.0 application development like MVC, web services, theming, widgets and so on. 1. Download the framework from www.yiiframework.com 2. Extract the file and place it into your xampps htdocs. For this tutorial, I have extracted D:\XAMPP\htdocs\yiiframework 3. Make sure [...]

Warning/Deprecated Error in bbPress

After installing bbPress, if you get a Deprecated/Warning error message then please check your php Version. bbPress don’t seem to support latest version of php. bbPress is doing this, has been “deprecated” (made obsolete) in the new version of PHP. Everything will still work, but in the future PHP may change and these functions will [...]

Changing The Site URL in bbpress

Like wordpress you can also change the Site URL of bbpress. Steps: 1. Login to phpMyAdmin. 2. Click the link to your Databases. A list of your databases will appear. Choose the one that is your bbPress database. All the tables in your database will appear on the screen. 3. From the list, look for [...]

Changing The Site URL in wordpress

On the Settings > General screen in a single site installation of WordPress, there are two fields named “WordPress address (URL)” and “Site address (URL)”. These are also known as the “Home” and “Site URL” settings. They are important settings, since they controls where WordPress thinks your site is located. They control the display of [...]

Install bbPress and new theme

Download latest version of bbPress from bbpress.org. Unzip it rename it and upload in the root directory of the HTTP Directory, normally it is the directory where you put your website files and so on. After that follow the step, and it will ask you the database name, so make sure that you create one [...]

Difference Between include, include_once, require, and require_once

Every time I worked on PHP, I always used include, then later on I wanted to know the difference between include, include_once, require, and require_once. After googling I came to know the difference. include: Includes and evaluates the specified file, throwing a warning if the file can’t be found. include_once: Same as include, but if [...]

Delete WordPress Posts Revisions from Your Database

The post revision feature of the wordpress have cause to increase the size of your database. So in order to delete all those post that have post revision version, run the following query in your website’s MySQL database : DELETE FROM wp_posts WHERE post_type = “revision”;

WordPress Hack to Hide its version

There had been issue and talk going around about wordpress sites being hacked. One main thing that most of the hackers look for is the Version of the wordpress that is being used for the site. Well if you are worried about it, here is a sweet short code that will remove the wordpress version [...]

Follow Me

Weather

Thimphu: 6° C

Condition: Mostly Cloudy

Sunrise: 7:12 am

Sunset: 8:46 pm

Time: 11:57:03 am

Archives

Users: 5 Guests