Use php date function and minus (-1) days from today’s date $smart_yesterday = strtotime(date(‘Y-m-d’, strtotime( ‘-1 days’)));
Author: smarttips
How to Recover deleted files on netbeans IDE
NetBeans IDE 7.3 is a super tool for development and it supports several programming languages.We are now using NetBeans IDE 7.3 for different different types of software development environments. In NetBeans IDE 7.3 recovering options are also available. Right click on the folder/directory of NetBeans IDE 7.3 that the files had been deleted. Then Choose Local History…
How to Give All File Permission / folder permission recursively in ubuntu(chmod command)
Ubuntu operating system(OS) gives more importance to security. So all types operations need root permissions. Two ways give permissions in Ubuntu. To do this, you need root access. one ways is to right click on on file/folder and edit permissions. The second way is through terminal(CMD). command: sudo chmod 777 pathtofile/folder Eg : sudo chmod…
How to get root access in ubuntu
Linux is a opensource platform. Most popular linux based operating system is ubuntu. The latest version of ubuntu is choose Ubuntu 12.10. The ubuntu 12.10 version contains latest features but it has long term support. The stable and LTS one is Ubuntu 12.O4 LTS.Ubuntu giving more preference to its secuirity so all root access is…
IP Ban using htaccess
Use the following code in .htacces file. Then all the request from that ip will be denied. This will helps to protect the website from particular ip attack. ## USER IP BANNING <Limit GET POST> order allow,deny deny from 192.168.1.0 allow from all </Limit>