May 29

URL Rewriting

What is “URL Rewriting”?

Most dynamic sites include variables in their URLs that tell the site what information to show the user. Typically, this gives URLs like the following, telling the relevant script on a site to load product number 7.

The problems with this kind of URL structure are that the URL is not at all memorable. It’s difficult to read out over the phone (you’d be surprised how many people pass URLs this way). Search engines and users alike get no useful information about the content of a page from that URL. You can’t tell from that URL that that page allows you to buy a Norwegian Blue Parrot (lovely plumage). It’s a fairly standard URL – the sort you’d get by default from most CMSes. Compare that to this URL:

Continue reading

May 29

URL Manipulation

One of the way in which hackers attempt to gain access to restricted areas of a website is via URL manipulation. For example, a simple PHP script to show a record with the ID of 7 from a database might use a URL ending showrecord.php?id=7. It would be easy for a hacker to change this to showrecord.php?id=8.

To defend against this problem, you should take steps in several areas:

    • Check the owner of every record before displaying it. This means adding a userid (UID) to every record and comparing it to the current user’s ID.


    • Use POST rather than GET to send the form data (i.e. <form action="action.php" method="post">). This prevents URL manipulation, as the data is sent in the HTTP headers and not in the URL.


May 24

Joomla in your Website Theme

  • Joomla integration into your website begins with PSD to HTML conversion. To do that you will first need to make a library of the PSD file. Cutting separates the different pages of the file that will helps developers  codes to the pages. The standard layers that are always helpful are logo, banner, links and the body.

  • While converting PSD to CSS, remember to use semantic codes. Semantic codes are beneficial in the long run as they enhance the quality and performance of a site. Using any markup language you can go for semantic coding.

  • You can also use CSS that further define the design attributes of the site and help make a site faster. CSS also reduces the amount of codes and is an advantage for search engine optimization.

  • Once the PSD file is cut and coded using HTML or HTML5, getting it validated by W3C completes the conversion process. Following W3C guidelines ensure that you follow all the subscribed structure for building a website.

  • After above steps are completed, theme is ready as a web compatible file and can be easily integrated into Joomla. The Joomla interface has an easy-to-use admin panel through which you can easily integrate the theme into the website.

May 17

Use Drupal when


  • want a rock solid & high quality platform for your sites
  • want or need a real multi-site-feature
  • need any kind of user groups & user permissions
  • need to run also membership- and community sites, not only CMS etc
  • want a Powerful templating system
  • ready to invest a bit of your time in order to realize all the huge possibilities of Drupal
  • want flexibility and don’t like limitations
Category: Drupal | LEAVE A COMMENT
May 17

Pass a Javascript Array to PHP file using AJAX & JSON?

An array in javascript and you need to pass this array to a PHP by using AJAX call to that PHP file. I will get this array in PHP file and assign this javascript array to PHP array. Then you will find out the count of that PHP array elements and return it back to the javascript. Then convert JS array in JSON format by JSON.stringify. This is a very simple example on how to pass javascript array to PHP asynchronously. Let’s have a look at the following code below;

Continue reading