Apr 21

You were at a party and someone mentioned something about their blog and how they became a millionaire just by bloging at home while eating Doritos and watching those brain damaging daytime Tv shows . Now, this sounds interesting right? So, you went online and try to figure out what exactly is a blog and how you can get one.

A quick search on google gives all sort of info about blogging and the different types of blogs out there. here is a list of the most common ones out there:

  • Blogger
  • typePad
  • Blogware
  • Wordpress
  • Movable Type
  • Expression Engine
  • Dupral
  • TextPatern

But, which one is the best blog software on the on the web? I personally think wordpress is the best and it seems like i am not alone. Here is a survey taken by 345 people illustrating the amount of people using one of these blog software… yes small sample but it conveys the point.

As you can see word press is the winner by an incomparable margin. Now, I did not go trough all the  specific as to what really makes wordpress the best which i should. But, I’ll try to incorporate that on one of my next blog entries

Apr 20

Usually uploading my php code from one server to another has been a very straight foward task to accomplished. It usually follows the following steps:

1-Dowload the whole site directory from server A

2-Upload directory structure to server B

3-Setup the same database structure on server B

4-Finally, I usually have to change the link paths and change the database connection credentials

These 4 steps usually work without any major issues. Unfortunately, this time I ran into all kinds of nightmares. I spent hours changing a site that was working perfectly on server A. This was a very confusing and frustrating process since I could not see why I was getting errors and weird script behaviors from server B.

To be honest I was getting very worried! I thought it was going to be impossible to complete my upgrade from server A to server B. Fortunately, I soon realized why my script was misbehaving. Here is piece of code that work on server and not server B. I will point out what modification was done to have it work on server B. Trust me it was a very sample change but it could take hours to figure out WHY!!!!

I was opening and closing my script on server A as follow:

<?  /*php code goes here*/ ?>

This seems completely logical right? But guess what, this does not work on php5.

This is how php5 allows you to declare the opening code tag:

<?php  /*php code goes here*/ ?>

As you can imagine I had to modify my whole site to change the opening php code from <? to <?php. Very time consuming but did not mind since that was the only way i knew to solve my problem.

PS:If you have any other suggestions on how to fix this please feel free to share it with me here.

Apr 17

All,

Welcome to my blog,  we hope you will enjoy your visit and will contribute as much as possible. The main idea of this blog is to share ideas with others and in the process learn something in return. The blog will mainly focus on technologies such  as web development, PHP, Mysql, MSSQL, ASP/ASP.net, AJAX and numerous other ideas and technology deemed interesting to me.

There is a tremendous amount of knowledge out there to gain, which is why I am looking forward to see what other genius ideas people might want to share with the world!