Wednesday, July 25, 2007

Working with ZOOP (Installing and configuring and a simple Hello World

Zoop Installation

1) Download the Zoop Library and unzip into the PHP folder
2) Download the Zoop Pear Library and unzip into the PHP/zoop-ver/ folder
3) Edit the php.ini file..
session.save_path = "E:\tmp"
include_path=".;E:\Program Files\PHP\pear;E:\Program Files\PHP\zoop-1.3b1;E:\Program Files\PHP\zoop-1.3b1\lib\pear"

4) Download the zoop-skeleton and copy it inside you htdocs web (root) folder.

Configuring the Zoop

1)

Friday, July 20, 2007

This Insert comes in Handy..

In Gentoo, the my.cnf, has a default setting of binding the local interface to 127.0.0.1, hence from outside we are unable to connect to the server at port 3306.

Always remember, that before we check all the permissions inside the mysql db, we should check the connection from outside ie. 'telnet romote-address 3306' If this connects and still you get error in connection, then there is an authentication problem..

Check the host table..
if not insert this..
insert into host (Host,Db,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Drop_priv,Grant_priv,References_priv,Index_priv,Alter_priv,Create_tmp_table_priv,Lock_tables_priv) values ('%','db_name','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');

% denotes all hosts.. You can mention an IP address to restrict connection from a certain IP address.


PEAR Installation on Windows..

Firstly get PHP installed on your machine.
next go to http://pear.php.net/go-pear, save this page as go-pear.php.

Assuming your PHP was installed nicely, and you had selected to configure the Env Variables, while Installing PHP, go to command prompt.. ie 'cmd'.
F:>php go-pear.php

Progress herewith by selecting the exact path of your PHP installation and continue henceforth.

How To Install Struts4PHP

Now, that Pear installed do the following things..

1) F:>pear channel-discover pear.struts4php.org
2) F:>pear install struts4php/struts4php
Although the above #2 command did not work on my machine..
I had to force install, it said some comflict with lang package ..
2) F:>pear --force install struts4php/struts4php

Thats all..

Now unto understanding the struts4php...

List directories via 'ls -d' - surprised me

List directories via 'ls -d' - surprised me This was one of those feelings where I was left surprised with the humble linux comm...