Narendra Dhami

My Site

Archive for September, 2009

Simple Process for PHP Projects

Posted by Narendra Dhami on September 3, 2009


More …

Posted in PHP | Leave a Comment »

Solutions To Session Attacks

Posted by Narendra Dhami on September 2, 2009

Recently i wrote two other security article on XSS and SQL Injection. I find many interesting facts and solutions on those topic that i research about and wanted to know more about other security measure. Thus, in this article i will discuss on different type of session attacks and how we can better protect ourselves against these attacks to better secure our web portal.

Session attack is nothing more than session hijacking. The most important information in session attack is to obtain a valid valid session identifier (SID). There are three common methods used to obtain a valid session identifier.

* Session Prediction
* Session Capture
* Session Fixation

More …

Posted in PHP, Web | Leave a Comment »

Searching in Google, the good way

Posted by Narendra Dhami on September 2, 2009

There are huge set of techniques by which searching in Google can be done more accurately, and here is a list of them that I frequently use.

1. Whenever we search for more than one keyword (i.e. computer programming, here we use 2 key word. a) computer b) programming) at a time Google will handle this keyword using a method called Boolean Default. Google’s Boolean default is AND; that means if we enter query words without modifiers, Google will search for all of them. If we search for:

computer programming

Google will search for all the words. If we want to specify that either word is acceptable, we can put an OR between each item:

computer OR programming

If we want to exclude a query item from search results, use a -.(minus sign or dash:

computer -programming

Note that there is no space after the (-) sign.
2. To search for a phrase use “” surrounding the phrase. like:

“Some Interesting Google Search Technique”

3. Period (.) and Asterisk (*) can also be used as traditionally used.
4. To search anything from a specific site use site:site_name.


This will search for the term google only in the specified site. Note that there is no space after the (:) sign.
5. To restrict search to title of web pages we can use intitle:search_keyword


6. Use inurl:search_keyword to restrict search to the URLs of web pages.


7. To search in body text use intext:search_keyword


8. Searches for text in a page’s link anchors

inanchor:”google desktop”

9. To search for a specific filetype use filetype:desired_file_type

bangladesh filetype:pdf

10. To search a copy of the page that Google indexed even if that site/page is no longer available at its original URL or has since changed its content completely. This is particularly useful for site/pages that change often.

Original From

Posted in Web | 4 Comments »

An Overview of the MySQL Server Architecture

Posted by Narendra Dhami on September 2, 2009

Posted in MySQL | Leave a Comment »