Developing PHP Applications

Zhannar Personal Blog

Archive for January, 2008

Jan-24-2008

How to setup your WAMP with your own choice of directory (Part 3)

Yeah I know that it’s been a while since my last post about this series. But don’t worry, here it is. ;) :P

This is the last part of my WAMP setup series

In this part we finalize our WAMP Server (configurations and settings).

1. Create a folder named “php” under “C:/server/apache/modules” directory.

2. Extract your PHP zip file here and copy this highlighted files.

3. And paste it under “C:/WINDOWS/system32″

4. Copy the distributed php.ini file

5. And put it under “C:\server\apache\conf” directory (where your apache’s httpd.conf reside).

6. Create a temporary folder under your server directory (is this case, “C:/server/”). This will be use in your “session.save_path” setting.

7. Start editing your php.in file set your “extension_dir” to “C:/server/apache/modules/php/ext” and load most commonly used extensions. Also set session.save_path here.

8. Now, Start editing your apache’s httpd.conf file. Here, set your DirectoryIndex, DocumentRoot (where your public files are located.). Also change your directory path “<Directory … >” same as your DocumentRoot’s value.

Load the PHP as module in your apache server:

LoadModule php5_module “C:/server/apache/modules/php/php5apache2_2.dll”

Then add the filetype of the php. (you can also add .php5 and .php3 if you want to)

AddType application/x-httpd-php .php

And lastly, locate your php.ini, the one that you have edit.

PHPIniDir “C:/server/apache/conf”

…and that’s all. Happy PHPing!!!

Posted under PHP-MySQL, Tutorials
Jan-19-2008

Install Aspell for your WAMP setup

Download this files first: (http://aspell.net/)

Aspell installer: Aspell-0-50-3-3-Setup.exe

Precompiled dictionary (English): Aspell-en-0.50-2-3_2.exe

Install this files, then go to “C:\Program Files\Aspell\bin” copy the following files

- aspell-15.dll
- pspell-15.dll

Paste it under C:\windows\system32\

You can now enable the pspell extension through your php.ini file by uncommenting this line:

extension=php_pspell.dll

Check it through your phpinfo file.

pspell enable

sweeet… right? ;)

Posted under PHP-MySQL
Jan-11-2008

Simple Tag Cloud Code

Don’t have any idea how to create a simple tag cloud for your application?

Here’s a simple code snippet to start with:

PHP Tag Cloud Tutorial

It’s pretty much that simple.

Posted under PHP-MySQL
Jan-2-2008

New to Code Igniter?

If you are new to Code Igniter (sometimes it’s called CI) and eager to learn in a fast way, why not try to watch their video tutorial.

I use this Framework only when I develop an application to a PHP4 based server.

Posted under Tutorials
Jan-1-2008

End of 2007, Start of 2008

2007 is over, 2008 is coming…

Did you missed something in 2007? try this

HAPPY NEW YEAR TO ALL!!! ;)


Posted under Seasons