I am developing a project in which I have to make sure that the user can access the page only if he is logged in, otherwise he should remain at the login page. For which I am going to use middleware. First of all, I will create a middleware and name it “isLogin“. command :...
Category: Web Development
How I Integrated reCAPTCHA v3 with AJAX in my Laravel 11 project
Are you adding reCAPTCHA validation to your website forms and Google for the first time and google’s guide is going right above your head? That was me, today morning! But I finally figured it out and obviously I’d like to share what errors I faced and how I solved it. I am working on Laravel...
How to detect bots in a server side script like PHP
Humans and bots will do similar things, but bots will do things that humans don’t. Let’s try to identify those things. Before we look at behavior, let’s accept RayQuang’s comment as being useful. If a visitor has a bot’s user-agent string, it’s probably a bot. I can’t image anybody going around with “Google Crawler” (or...
Adding mssql support in php5 on Debian or Ubuntu
To add/install MSSQL support in PHP5 on Debian linux server, follow the below steps: Install FreeTDS and the PHP MS SQL extension sudo apt-get install freetds-common freetds-bin unixodbc php5-sybase Note: That is correct, the MS SQL extension is in the “php5-sybase” package. Restart Apache sudo /etc/init.d/apache2 restart If everything went fine then you will be...
Cakephp preventing ARO to check for user permissions
In cakephp most of us use ACL with Auth component to manage logins and access to various pages. When we need to implement this feature based on User Roles only. Sometimes the ARO checking gives error – that the User not exist for the foreign key. This is because if the role does not have...
Uploading files to FTP server from PHP Script
For one of my project I was required to upload files on an FTP server from the PHP script. Searching on Google I found code required but it was not completely available at one place. So I thought to share this here for use by others as tried and tested code, working on a live...
Mobile device emulators to test web page display
Today, the usage of mobile is increasing day by day and most of the users are preferring mobile device over desktop. Therefore it is almost necessary to check how a web page looks on a mobile device and make adjustments using the mobile specific CSS. But it is not every time possible to have all different...
WordPress plugins to help Administrators
While browsing thorough my emails today morning. I found a link to wordpress plugins for blog administrators. This is a well categorized list and have plugins listed for User interface improvement, security, collaboration, editing support etc. Let me know if you like it or not. Or which plugins do you use on every wordpress site...
Reset password of Joomla 1.0.x Administrator
Recently I need to upgrade one Joomla 1.0.x installation to the new installation. If you are also dealing with Joomla 1.0 installation to upgrade or maintain and missed the password for admin user. This can also be useful if you need to add new admin user, without disturbing the old user records. Then here are...
Server side forced reload of a cached file in browser
With the advent of modern browsers, web pages are using more and more javascript and stylesheets to make applications work faster and look better. And this is achieved with caching the Javascript, images and CSS files in the browser cache in user’s machine. This is great for speeding up page load for end user, but...