Difference between require and include in php: require(‘filename’) includes the file we specified , while executing, if any error occurred, it produce a fatal error and stop execution of t...Read More
Sessions used to store information on server. Session variables are used to store the details in server. Can be store unlimited amount of data. Once a connection made with server, all data like, input...Read More
To get the configuration details(like php version, host details, mysql details) use the following function: How to get the installed php version ? phpinfo();...Read More
To make website responsive in all device , include following meta tag in header section: <meta name=”viewport” content=”width=device-width”> Then include media queries in...Read More
Grid system is the main feature of bootstrap. we can divide the container into 12 sections and use those section based on our needs(based on the width of each section in our website design. there 4 cl...Read More
bootstrap is a html – css framework mainly used for making responsive websites. Bootstrap have some predefined classes, using those classes we can make the website responsive to all device easil...Read More
echo version_compare(PHP_VERSION,’5.0.0′); if our php version is greater than ‘5.0.0’ will print 1. echo version_compare(PHP_VERSION,’7.0.0′); if our php version is...Read More
How to call a function in PHP after 5 seconds in php ? sleep(timeinsecond); is used to make a delay in php. sleep(5); 5 second delay . Then we can call any function in php...Read More
Using filter_var function , we can check whether an email is valid or not valid with FILTER_VALIDATE_EMAIL filter. if(filter_var(“[email protected]”,FILTER_VALIDATE_EMAIL)) { echo “va...Read More
How to split a website url in php? Using parse_url() function you can split the URL in php $url_str=parse_url(‘http://www.thehindu.com/news/national/highlights-from-prime-ministers-lok-sabha-spe...Read More