Drupal 7 :Hello World Module


Tagged with: , , , ,
Posted in Drupal

How to calculate last friday using Javascript


Originally posted on Web Developer Blogs:

todayDate = new Date();
LastFridayDate = new Date();

LastFridayDate.setDate(LastFridayDate.getDate()-1);

while (LastFridayDate.getDay() != 5){
LastFridayDate.setDate(LastFridayDate.getDate()-1);
}
// Friday = 5
if(todayDate.getDay() == 5) {
console.log(todayDate); //if today is Friday, it will display today date
} else {
console.log(LastFridayDate); //if today is not Friday, it will display last friday date
}

getDay – returns the day of the week (from 0 to 6) for the specified date

View original

Tagged with: , , ,
Posted in javascript

Happy new year 2015

india-happy-new-year-2015-HD-wallpaper

india-happy-new-year-2015-HD-wallpaperNights are Dark but Days are Light,
Wish your Life will always be Bright.
So my Dear don’t get Fear
Coz, God Gift us a “BRAND NEW YEAR”
** HAPPY NEW YEAR 2015 **

Tagged with:
Posted in Happy new year 2015

2014 in review


The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog.

Here’s an excerpt:

The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 24,000 times in 2014. If it were a concert at Sydney Opera House, it would take about 9 sold-out performances for that many people to see it.

Click here to see the complete report.

Posted in Practice Makes a beginner to become php programmer expert(practical task to become php programmer)

How Drupal 7 Handles URL Requests?


drupal cache system

drupal cache system

  1.  When web server receives an HTTP request response to the drupal 7 website ,the index.php file is loaded and executed by server to handle request.
  2. The setting.php is used to determine the process of HTTP request to several website like we can create several setting file.
  3. page cache is stored in database to increase load page time ,but it only applicable to anonymous user and not for authentication like logged.

 

Tagged with: , , , , , ,
Posted in Drupal
Follow php tutorial on WordPress.com
categories
Calendar
March 2015
M T W T F S S
« Feb    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
Follow me on Twitter
Blog Stats
  • 56,096 hits
Follow

Get every new post delivered to your Inbox.

Join 29 other followers

%d bloggers like this: