Archive for July, 2006

Today I Picked up My Honours Certificate !!!

Wednesday, July 19th, 2006

After a long time I received my graduation certificate. I finished my Exam in June 2004 and got Result in October, 2004 and awarded for “The Best Student Award” in February 2006 . Finally I received my certificate today. It’s really a great feeling when I got that in my hand.

Today When Zaman Sir asked me if I want to go abroad or not. I answeared him “No”. I have some tasks to do here . I’ll complete Zend Certification within short time and I have some ideas which need to be implemented within short time. And I really don’t have time to think about abroad now. I wanna stay here as long as I can . I want to stay here although I don’t know if I can stay here for long or not.

Life is Strange!!

Javascript Flash Player detection and embed script

Thursday, July 13th, 2006

Few days ago when i was validating a site for W3 Standard and i was fixing error one by one. I saw that the < object > tag doesnt support W3 standard . And i was in deep trouble to fix those problem . But at least i got a Javascript thats detect flash player and helps me from removing that bugs.

this is very easy to use and configure. You just have to include a JS file and put the following line :

[For the further help, you can view the raw javascript here.]

Javascript Code ::

------------------
var so = new SWFObject("movie.swf", "mymovie", "200", "100%", "7", "#336699");
so.addParam("quality", "low");
so.addParam("wmode", "transparent");
so.addParam("salign", "t");
so.write("flashcontent");
---------

Here You can find the details about it . http://blog.deconcept.com/swfobject/

I really loved it !!!!

Generate a random alphabetic word

Saturday, July 8th, 2006

Many times we need to create a random word in variable length . Then it seems complex to us cos php’s Rand() function return only random numbers not alphabatic charecter . And after getting a post at phpResource i have discovered a simple function for this problem . here is the code .

——————————-

function rand_word($length)
{
$word = “”;
for(
$ix = 1; $ix <= $length; $ix++)
{
$word .= chr(rand(97, 122));
}
return($word);
}

————————-
All you need to call this function with the desired langth . Its soo simplee……..
Example : rand_word(5);


PHP Object code generator

Friday, July 7th, 2006

Today when i was roaming on net i found a very cool site from where we can generate full object oriented code . Its provide clean and tasted code for CRUD method.

About Php Object Generator

PHP Object Generator, (POG) is an open source PHP code generator which automatically generates clean & tested Object Oriented code for your PHP4/PHP5 application. Over the years, we realized that a large portion of a PHP programmer’s time is wasted on repetitive coding of the Database Access Layer of an application simply because different applications require different objects.

By generating PHP objects with integrated CRUD methods, POG gives you a head start in any project. The time you save can be spent on more interesting areas of your project.

Visit : http://www.phpobjectgenerator.com/