SQL injection

SQL injection is a technique that exploits a security vulnerability occurring in the database layer of an application. The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed. It is in fact an instance of a more general class of vulnerabilities that can occur whenever one programming or scripting language is embedded inside another.

Regular expression in PHP

Regular expressions (abbreviated as regex or regexp, with plural forms regexes, regexps, or regexen) are basically pattern matching inside of text. Regular expressions are used by many text editors, utilities, and programming languages to search and manipulate text based on patterns. For example, Perl, Ruby and Tcl have a powerful regular expression engine built directly into their syntax.

PHP Optimization Tips

1. If a method can be static, declare it static. Speed improvement.

2. str_replace is faster than preg_replace, but strtr is faster than str_replace .

3. $row['id'] is 7 times faster than $row[id] , because if you don't supply quotes it has to guess which index you meant, assuming you didn't mean a constant.

4. Do not use functions inside of for loop, such as for ($x=0; $x < count($array); $x) The count() function gets called each time.

5. echo is faster than print

Some function of Date & Time

Following Date & Time Function so helpfull:

1. Number of days in a month
The function 'cal_days_in_month' is used to return the number of days in a month. This function takes three arguments one for calendar name, month value and year value respectively.

Syntax:
cal_days_in_month( CAL_GREGORIAN, $intMonth, $intYear);

Example:
cal_days_in_month ( CAL_GREGORIAN, 1, 2005); Output: 31

2. Calculating Days In A Month

Article Writing Ideas are Easy to Find

Quantity is almost as important as quality when using article marketing to improve your online presence. The trouble is, coming up with fresh article writing ideas can prove difficult. Try these methods when you need to come up with new articles.
 
The easiest technique to use is to simply read other articles. There are articles on the internet about every subject you can think of. This can often inspire you with ideas that you would never have thought of on your own.
 

What is the Difference Between http and https?

Http is hyper text transfer protocol which is responsible for transmitting and receiving information across the Internet where as https is secure http, which is used exchanging confidential information with a server, which needs to be secured in order to prevent unauthorized access.
 

Web Programming With PHP

Things you need to know to begin web programming with PHP:

  • Good knowledge of HTML
  • Some knowledge of CSS
  • Some knowledge of JavaScript
  • Good knowledge of MySQL Database, SQL (as most php applications are database driven)
  • Good knowledge of PHP
  • Using IIS or Apache

 

Tutorial Links:
Here are the links to tutorials that may help you to accelerate your learning process.

Abir's Photo

Abir's Photo

PHP – MySQL Interview Question

What's PHP?
The PHP (Hypertext Preprocessor) is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications.

About Drupal

Drupal is a free software package that allows an individual or a community of users to easily publish, manage and organize a wide variety of content on a website. Tens of thousands of people and organizations are using Drupal to power scores of different web sites, including

MySQL - Basic Information

MySQL is the world's most popular open source database software, with over 100 million copies of its software downloaded or distributed throughout its history. With its superior speed, reliability, and ease of use, MySQL has become the preferred choice for Web, Web 2.0, SaaS, ISV, Telecom companies and forward-thinking corporate IT Managers because it eliminates the major problems associated with downtime, maintenance and administration for modern, online applications.

About PHP

PHP (recursive acronym for "PHP: Hypertext Preprocessor") is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

PHP is a computer scripting language originally designed for producing dynamic web pages. It is for server-side scripting, but can be used from a command line interface or in standalone graphical applications.

Syndicate content