"I am webby and I think webby" - AjiNIMC aka Aji Issac Mathew - "I thought and I wrote".

AjiNIMC logo - Aji Issac Mathew I am Aji Issac Mathew also known as AjiNIMC at various forums. I am webby and I think webby, being a part time blogger, this blog is a documentation of my experiences and my learning.
Blog Stats (22 June 2007): There are currently 242 posts and 679 comments (and 40267 spam comments), contained within 17 categories.
RSS for Aji Issac Mathew's blog

 Home >

Archive for the 'PHP' Category

Finally I got the sourceforge project approved

Thursday, November 16th, 2006

https://sourceforge.net/projects/wordpress-mu. I had worked with hedir to make the multi user wordpress work.

There are many more things left like,

  • A proper user management.
  • Themes edit (which is a big challenge)

I am sure this is much better than http://mu.wordpress.org. If you are interested in working with me on this project please contact ajinimc(at)users.sourceforge.net. I will get back to blogging next month.

Generating 403 errors from Document root

Monday, August 21st, 2006

I wanted to generate a 403 error at the document root in absence for Document Index files (index.html and index.php). I tried various things with no success. Even the other team programmers asked this question at various forums, they all got the same suggestions:-

  • This looks like a .htaccess problem, check your .htaccess carefully, or
  • Check the Document Index.
  • Check the “Options Indexes” properly.

These were the responses I was getting and rightly so as these can be some possibilities as well. Even after all these work I could not make it work. I then decided to approach my boss (a technical geek by choice and management guru by profession). He then asked me to remove the following like from the httpd.conf LoadModule autoindex_module modules/mod_autoindex.so and it worked. I certainly need to do some more study to understand this module better. In case someone like me in urgent need of a hint can get it through this blog post.

“Do not forget to restart the Apache server :)”

Dynamic sub-domains with PHP

Saturday, July 29th, 2006

I got this email from one of the php usergroups,

“I have to create subdomains dynamically by php when an user registered in my site. Anybody who knows the script and procedure , please send me ASAP.”

I hate repeating things so better let it go live than bury inside a usergroup. Here I go with the answer.

Step 1: Make the following entry to your apache http.conf
ServerAlias *.domain.com ( do not forget to restart apache :) )
Step 2: Now remember that all the query comes to same doc root. Now you need to catch it using .htaccess and process it the way you want.

Also make sure your dns is able to process your sub-domains properly. These simple steps will make it happen.

Integrated PhpBB with a blog

Wednesday, September 21st, 2005

We always wanted a blog for our growing community. I am a big fan of wordpress so I tried to integrate it with PhpBB forums but complexity of code and unavailability of open integration code made it next to impossible for a three day deadline.
(more…)

DB_Table Problem

Saturday, September 3rd, 2005

We did a major update to one of our financial sites on Aug 30th 2005, we converted all forms to use DB_Table using HTML_QUICKform . During implementation we faced few problems, let me put it over here.
(more…)

Countdown for Nostalgia-2005

Wednesday, August 31st, 2005

It took some real good time, a js countdown with current date was little difficult to do. I decided to use php then and made it work. It is already too late , so going for a sleep, let me know if you want to know how this is made :) .

Check the Countdown for Nostalgia-2005 at http://idealwebtools.com/nimc/alumni/

have fun

My Daily News Page

Friday, August 26th, 2005

I always had problem going through all tech sites to get the latest news , now I have compiled all together on a single page at http://www.idealwebtools.com/feeds/tech-news.php , I call it goodmorning Page.

You too can make it a goodmorning page , starting your day with it. I have two more pages , one dealing with debt consolidation and another the top stories across all the leading news sites.

so here are your good morning pages

All was possible with RSS and CARP ( Displaying RSS feeds on your site) . I had some problems with Carp as well, I did some code manipulation to make it work. I will soon share it here.

Country-State-City Database

Wednesday, August 24th, 2005

I wanted a drop down for country , state and city and doubted the possibility. I scanned the internet for few DBs, I got the country DBs from many websites but there was no single available through top google search allowing me a country state drop down.

I decided to search further and got the following things for Maxmind.com :-

  1. http://www.maxmind.com/app/country - A free Geo IP country DB
  2. http://www.maxmind.com/app/city , also I checked my databases and found that I already have the city database.

Now the problem was how to map between country and state. I found the maxmind systems are following some standard codes ,

  • for country http://www.maxmind.com/app/iso3166 (it is ISO 3166 Country Codes)
  • for state it is following FIPS 10-4 Subcountry codes http://www.maxmind.com/app/fips10_4 , which is a combination of country and region code , example for India the regions are :-
    IN,01,”Andaman and Nicobar Islands”
    IN,02,”Andhra Pradesh”
    IN,03,”Assam”
    IN,05,”Chandigarh”
    IN,06,”Dadra and Nagar Haveli”
    ……

This solved my mapping problem but now I have to convert it to a DB to make it a perfect dropdown. I do not want it to refresh the page with every drop down so I have planned to use jpspan .

This will solve the problem and also I have asked my team to provide the DB for free.

Have a nice Day.

You are visitor number