Recharge your programming batteries - Tips

Many of us in the field of programming and development go through a phase where we completely blank out. Our minds don’t work, our logic seems to have lost its track and we are not able to make any progress with projects. If this has happened to you and continues to happen to you… then […]

PHP5 Tutorial on Arrays

This PHP5 tutorial discusses about PHP arrays.
What is an array?
Generally speaking an array is continuous allocation of memory of similar data types.
This means that you can define a single array variable which can hold multiple values at the same time. These multiple values are retrieved using an index number. Don’t worry if you did not […]

Tips to get article ideas for your blog

If you wish to start a blog or already have a blog and have this issue that you keep running out of ideas, I recommend that you consider the tips mentioned below to help you generate ideas for your blog posts.

1. Discuss issues with other people
When you discuss issues in your area of specialization, you […]

PHP5 OOPS Tutorial __get() and __set()

This article talks about the use of __get() (double underscore - get()) and __set() (double underscore - set()) PHP5 OOPS magic methods.

By default PHP is a Loosely typed language and therefore it is not necessary to declare variables before using them. This also holds true for using class members. Look at an example below.

[…]

Why should every programmer upgrade knowledge

In this age of competition and business flourishing, gone are those days when employers would look at someone specialized to execute projects. Though this still holds true for Architect level positions, but; employers expect a little more from programmers and software engineers.

Today knowing an array of technologies help you get a job of your choice […]

Is it 12 or 13?

An interesting play with graphics. Check it out.

 
Your email:   Subscribe Unsubscribe  

 
 

PHP5 Tutorial - Magic Methods - __toString() method

PHP5 provides a magic method by the name of __toString() (double underscore followed by toString()) which is useful for debugging purposes.
The __toString() method is automatically called when an object in PHP5 is converted into a string for the purpose of display or concatenation.

[…]

5 practical tips to secure your web applications

Keep these practical tips in mind when developing code for your web applications. Examples shown are written in PHP and can be implemented in any language.

Prevent SQL Injection attacks
Provide additional security with backend validations
Validate Combo Box and List Box data
Convert HTML code into its entity form
Capture errors and show custom error page

[…]

How to swap 2 variables without temp variable

Swapping 2 variables requires a third temp variable, this is how it is implemented with 3 variables (I have implemented this in PHP, the same logic can be used in any language):
<?php
$a = 5;
$b = 7;
$temp = $a;
$a = $b;
$b = $temp;
echo “$a : $b”;
?>

[…]

Difference between MySQL delete and truncate table

Both remove records from the table, so what is the difference. Very simple, read along.
For this article, I will use a ‘friends’ table.
delete from friends;
and
truncate table friends;

Top Internet blogs Programming Blogs - Blog Catalog Blog Directory TopOfBlogs Technology blogs Top Blog Topsites List