HoHalla

Todays SMS

Love urself, Flirt with ur understanding, Romance with dreams, Get engaged with simplicity, Marry genuiness, Divorce the egos... Thats Good Life...

Latest Activity

Judi Booth is now a member of HoHalla
June 6
hanuman le kehi garcha
May 17
January 31
Shakeel Shrestha added a blog post
In PHP, if we need to use the functions of class file, to load the class file, we usually use include/include_once or require/require_once functions. But the easier way is to use the inbuild function __autoload(). For demonstration define the cla...
January 31

Blog Posts

Shakeel Shrestha

Autoloading Class in PHP

In PHP, if we need to use the functions of class file, to load the class file, we usually use include/include_once or require/require_once functions. But the easier way is to use the inbuild function __autoload().

For demonstration define the class files as needed. Example is given below.



class MyClass1{

function myfunction(){
echo "Function inside MyClass1";
}
}
Save the file as MyClass.php


class MyClass2{

function mynextfunction(){
echo "Function inside MyClass2";
}
}
Save the file as… Continue

Posted by Shakeel Shrestha on January 31, 2009 at 6:49pm

Shakeel Shrestha

Url Rewriting

Some url rewriting that I have used.

First uncomment the line below in apache>conf>httpd.conf file and restart the apache server.

LoadModule rewrite_module modules/mod_rewrite.so

Now add these lines in .htaccess file

#initialize mod rewrite
Options +FollowSymlinks
RewriteEngine on

#this line will disable direct file viewing within any folder
Options -Indexes


#this configuration will disable the access of .htaccess file
<Files .htaccess>

order allow,deny
Continue

Posted by Shakeel Shrestha on January 7, 2009 at 1:47pm

Shakeel Shrestha

Some Information about database indexes

Guidelines to create indexes

The characteristics of data and the usage of the data in the environment in which it is defined ascertains the columns to build the index. The usefulness of the index is directly related to the percentage of rows returned from a query. Low percentage or high selectivity are more efficient. Creating indexes on the frequently searched column is more useful and efficient. Indexes can be best created on the following columns.

• Primary Keys
• Foreign Keys or col… Continue

Posted by Shakeel Shrestha on January 1, 2009 at 11:30am

Shakeel Shrestha

Limitations of MySQL

Limitations of MySQL



General limitations of MySQL


32-bit binaries cannot addess more than 4 GB of memory. This is not a MySQL limitation, this is a technical limitation.



Limits of MySQL 4.1



Limits of Joins


In MySQL 4.1, the maximum number of tables that can be referenced in a single join is 61. This also applies to the number of tables that can be referenced in the definition of a view.


Limits of the MyISAM storage engine


There is a

Continue

Posted by Shakeel Shrestha on December 18, 2008 at 4:53pm

Shakeel Shrestha

Some Reality

Whenever you find the key to success, someone changes the lock.
_____

To Err is human, but to forgive is not a COMPANY policy.
_____

The road to success??.. Is always under construction.
_____

Alcohol doesn't solve any problems, but if you think again, neither does Milk.
_____

In order to get a Loan, you first need to prove that you have ability to repay back.
_____

All the desirable things in life are either illegal, expensive or fattening.
_____

Since Light travels faster than Sound, peo… Continue

Posted by Shakeel Shrestha on December 11, 2008 at 11:22am

Groups

Kathmandu Weather

YouTube :: Programming

 
 

© 2009   Created by Shakeel Shrestha on Ning.   Create Your Own Social Network

Badges  |  Report an Issue  |  Privacy  |  Terms of Service

You are Offline Sign in to chat!