Finding the first day and last day of current month.

Standard

Have you faced a situation when you need to find the first day and last day of a month? Such scenarios occurs when we do some kind of enterprise application when accounting or billing modules comes into the picture.

And YES its important as well. Lets find out in some of the technologies.

#JAVASCRIPT

Sometimes we have to send the dates from front end. Lets say by default you have to set date range components from 1st day of this month to current date. So here is the hack.

Continue reading

Configure apache php server to point location another then htdocs or www

Standard

Obviously! we can point apache server to pick our code files from another location other then www or htdocs. Also we can configure the url for our project folder.

Lets take a look how.

Step 1. Look for the file httpd.conf (this can be found under your apache installation folder inside conf directory)

Continue reading