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 :...
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...
Skills Over Degrees: A Game Changer for IT Career
Focusing on Skills Over Degrees Reframe the Degree Mindset: Degrees are just one part of the equation. Attributes like problem-solving, adaptability, and critical thinking often outweigh formal education in IT. Employers are looking for people who can get the job done, not just those with credentials. Promoting Lifelong Learning Continuous Evolution: The IT industry evolves...
Remove unwanted objects, people, defects, or text from your picture.
Many times it happens that you click a great picture, but it gets spoiled because of any unwanted object, person, text, or something else. If you want to remove the unwanted and fix the picture you just have to do one thing, search for cleanup.pictures, upload your picture, select the unwanted and you will get rid...
Remove pagination from WordPress Search page
To remove the pagination from wordpress search page, add the following script in your theme’s functions.php file: function no_nopaging($query) { $query->set('nopaging', 1); } add_action('parse_query', 'no_nopaging'); And you are done!
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...
Generate SPF Record
SPF records are required for the EMail address verification by most of the email servers now a days. To help you generate the correct SPF record for your domain, you can use the below SPF record generator: http://www.royhochstenbach.com/projects/spfgenerator/
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...