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.
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.
Sometimes we all need to insert multiple rows into our database. Data can come from various sources like feeds, excel sheets etc.
So how to do that?
Goal: Insert multiple rows in efficient way.
Sometimes we require to call a function with the name given as string variable. I wanted it. Just wondering how to do that in PHP? Here are the methods:
We have one inbuilt function to solve this purpose 1.
call_user_func and another way is 2. Using function name as variable.
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)