Archive for the ‘PHP’ Category

Javascript optimization tips

Posted: February 8, 2015 in General, HTML, PHP, Technology
Tags: ,

1. Minify Script Files: – Compacting JavaScript code can save many bytes of data and speed up downloading, parsing, and execution time. There are many compression tools available in market. Even you can write own small script to minify java script, you just need to rename variable/remove extra space etc.

2. Use advantage of reference types: – JavaScript, much like other C-based languages, has both primitive and reference value types. Primitive types such as strings, Booleans and integers are copied whenever they are passed into a new function; however reference types such as arrays, objects and dates are passed only as a light-weight reference. You can use this to get the most performance out of recursive functions, such as by passing a DOM node reference recursively to minimize DOM traversal, or by passing a reference parameter into a function that executes within an iteration. Also, remember that comparing object references is far more efficient than comparing strings.


If you want to improve your Web performance in your project, then you need to think/Answer on below points:
● How many database connections do I have in my code?
● How many request are going in my application?
● How much time does every select (db) statement spend?
● How many select statements do you have in your code?
● Are they inside loops?
● Do I really need them? Can I cache them?
● How many functions are there in my application? Can we replace with inbuilt functions?

What is WSDL?

Posted: October 3, 2011 in PHP, Technology

WSDL stands for Web Services Description Language. It is an XML-based language for describing Web services and how to access them. It help to web service consumer to consume. In easy words we can say with the help of WSDL file only user can use web service. WSDL file is key of web service. Without this key web service is useless lock. It specifies the location of the service and the operations (or methods) the services provide.

Speed Up Php

Posted: August 2, 2011 in PHP, Technology

There are some clear coding optimizations that would reduce load on the servers, and therefore remove the need for scaling out the infrastructure. It is common practice for developer which will help out to speed up php.

  • Avoid function tests in loop conditionals: – If you’re looping through an array, for example, count() it beforehand, store the value in a variable, and use that for your test. This way, you avoid needlessly firing the test function with every loop iteration. (more…)

Types of Session attacks

Posted: October 7, 2010 in PHP, Technology

1. Session fixation: – Session fixation attacks attempt to exploit the vulnerability of a system which allows one person to fixate another person’s session identifier (SID). Most session fixation rely on session identifiers being accepted from URLs (query string) or POST data.

For example, this type of attack can come from a link like this:

<a href=> Press here </a> (more…)

I recently read article while surfing regardomg WordPress Security. While doing research for my work  I came across a bunch of great WordPress Security tips that all WordPress users should use. Surprisingly, a good majority of these tips are not usually followed. Below is a list of the top 5 tips that most WordPress administrators do not do, but should:

1. Don’t use the admin account – The default user account that is created with every installation of WordPress is the admin account. Unfortunately the entire world knows this, including hackers, and can easily launch a dictionary attack on your website to try and guess your password. If a hacker already knows your username that’s half the battle. It’s highly recommended to delete or change the admin account username. (more…)

Web Services are the key point of Integration for different applications belonging to different Platforms, Languages, systems. It wouldn’t be wrong if you call Web-services as the “Rendezvous point of the Business”.

I’ve been using HTTP and SOAP since several years new. REST is rather new. SOAP revolutionized RPC and loose coupling beyond the restrictions posed by earlier protocols. However off late I have been giving APIs and interfaces considerable thought and am leaning a lot more towards simple HTTP based APIs with an XML or JSON response format as opposed to SOAP. Let’s try to discuss all the aspects one by one. (more…)