Tag Archive for 'php'

How To: Install Xampp In Ubuntu

This is a how-to for setting up a web development environment easily. This guide is aimed at a development environment only and should not be used as a public webserver. To setup a public webserver follow the directions on the Ubuntu wiki. The XAMPP project bundles Apache, PHP4 & 5, Perl, mySQL, and a bunch of other utilities/applications into an simple package for Mac OSX, Windows, Solaris, and Linux.

How To: Install Xampp In Ubuntu

Continue reading ‘How To: Install Xampp In Ubuntu’

Installing LAMP on Ubuntu

Installing LAMP on Ubuntu

LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.

This instruction will install the basic components for a dynmaic, database-driven web site. We use apt-get to handle dependencies and gather all of the required packages.

1. Install Apache (httpd), PHP, MySQL (server and client), and the component that allows php to talk to mysql.

sudo apt-get install apache2 php5 mysql-client mysql-server phpmyadmin libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysql

2. IMPORTANT! Set up the mysql database root password. Without a password, ANY user on the box can login to mysql as database root. The mysql root account is a separate password from the machine root account.

mysqladmin -u root password ‘new-password’ [quotes are required]

3. Make additional security-related changes to mysql.

mysql -u root -p
mysql> DROP DATABASE test; [removes the test database]
mysql> DELETE FROM mysql.user WHERE user = ”; [Removes anonymous access]
mysql> FLUSH PRIVILEGES;

4. Following the above steps, the document root for Apache is /var/www/

Create a test PHP script (such as phpinfo.php) and place it in the document root. A useful test script sample:

<?php phpinfo(); ?>

5. Create a database and database user for your data. You will use this database and user name in your database connection string. The GRANT statement actually creates a new MySQL user account.

mysql> CREATE DATABASE web_db;
mysql> GRANT ALL PRIVILEGES ON web_db.* TO ‘web_user’@'localhost’ IDENTIFIED BY ‘thepassword’;

Update: Bbpress Latest Discussion v1.3.2

The latest version for Bbpress Latest Discussion plugin for Wordpress has been update.

Update: Bbpress Latest Discussion v1.3.2

Recent Change (v1.3.2):

  • Add option to select what forum to be show on page.
    <?php
    
    // Example Code For Page/Post Display
    if function_exists('wp_bb_get_discuss') {
    	wp_bb_get_discuss(1,2,3,4,5); // The forum ID number that you want to show. Separate by comma.
    }
    
    ?>
    

Recent Change (v1.3.1):

  • Add gravatar template tag for sidebar display.
  • Add post count tag for sidebar display.

Recent Change (v1.3):

  • Fix how BbLD show topic title and forum name. Fix encoding issue. Report by Justin01.

Recent Change (v1.2.1):

  • Fix up query code. Now only use 1 query for 1 function. Report by dragunoof.
  • Add back `permalink type` option.
  • Add back `share userdata` option.

Recent Change (v1.2):

  • Major Clean Up Code.
  • Add Donate link option.

Recent Change (v1.1.2):

  • Add Bbpress.js file.
  • Fix external db connection.

Recent Change (v1.1.1):

  • Fix permalink not working. Report by guyom.

Download Plugin @ Wordpress.org
Bbpress Latest Discussion

Continue reading ‘Update: Bbpress Latest Discussion v1.3.2′

Wordpress Inside Bbpress – Part 2

Wordpress + Bbpress

In the Part 1, we have learn how to fetch topic data from Wordpress and parse it inside Bbpress. In this Part 2, we will learn how to change the default Wordpress permalink into Pretty permalink.
Continue reading ‘Wordpress Inside Bbpress – Part 2′

internet-webhosting.com Promotion

Wordpress Inside Bbpress – Part 1

Wordpress + Bbpress

Wordpress and Bbpress are kinda like brother and sister. Both being born from the same group that bring us the wonderful Wordpress. And most people like to see both Bbpress and Wordpress integrate together. It still a long way to archive a full integration but still it not like it gonna be impossible.

With Bbpress Latest Discussion (BbLD), We can already share some of Bbpress data inside Wordpress. But we hardly can see some plugin for Bbpress that show Wordpress post inside Bbpress.

How bout we try to make one… :) First, we need to build a function to fetch the data. I assume that both your Wordpress and Bbpress database are inside the same “Database Name”.
Continue reading ‘Wordpress Inside Bbpress – Part 1′



Valid XHTML 1.0 Transitional    Powered By Wordpress    Powered By Google