Bug Fix Crayon Syntax Highlighter WordPress Plugin in latest PHP 7.3

Bug Fix Crayon Syntax Highlighter WordPress Plugin in latest PHP 7.3

Today, while updating the PHP version to 7.3 we faced “preg_replace(): Compilation failed: invalid range in character class” warning in Crayon Syntax Highlighter a famous WordPress plugin. After looking into the bug we got a quick fix. We want to share that quick life–saving fix with our valuable readers. Before moving ahead we want to share the issue that we faced. So that our readers can also verify whether are they facing the same one or not? Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /var/www/website-folder/html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340 Bug Fix Crayon Syntax Highlighter WordPress Plugin preg_replace() Compilation failed latest PHP 7.3 As the above warning clearly shows that warning occurs on line 340 of …

Read More
google recaptcha v3 site key & secret key

Google reCAPTCHA V3 integration in PHP with Demo Example

Google has launched reCAPTCHA v3 to prevent spam bots from Form Submission without any user interaction. Google reCAPTCHA v3 returns score for each request based on interactions with your site. We can say this score a spam score. With this score we can take various action in your web apps. Today in this tutorial, we are going to show you how you can integrate Google reCAPTCHA v3 in PHP for your website. Register your website and get reCAPTCHA v3 Secret Key First of all you need to register your website on Google reCAPTCHA v3. To do that click here. Now, Login to your Google account & click on the + (Plus icon) on the right side near settings icon. Fill …

Read More

How to Lock PC or Laptop Folder without any Software, with using Bash Script – Windows

We always want to keep our file more confidential and safe from others and the hackers in our computer. We always waste our valuable time for a long in searching for the best password protect locker application/software over internet. And most of the time these software are not available for the free, we need to buy that. These software occupies more storage spaces too. If we spend money in buying these apps, we have to consider about the expiry time too, because it will get expire after a period of time. Then what is the way to protect our private & confidential files to keep away stealing from hackers? If you want such kind of things at free of cost …

Read More
WordPress

How to Insert Google Ads inside Post Content in WordPress

Google Ads are the best way to monetize your blogging. In some blog websites you might seen that, they has Ads inside their post content. These ads are either after the first or second paragraph in most cases. But you can also add ads after every second or third paragraph. Most beginners are wonder perhaps these websites inserts ads manually while writing the content. In this article, we will show you how to insert google ads inside post content after specific paragraphs. You can achieve this with the help of WordPress filters. Insert Google Ads after specific paragraph Insert Google Ads after every specific (second, third or fourth) paragraph By tweaking the above code you can change the magic for …

Read More
Android Tips & Tricks

How To Enable Wireless Debugging With The ADB In Android Studio In Ubuntu Linux

Sometimes debugging the android app via USB connection gets headache and you want to get rid of the USB connection. If you want to get rid of USB debugging then you are on right article. To enable wireless debugging in Android Studio Development you need to first enable developer options in your mobile. You can check How To enable Developer Options in Android mobile. You can enable wireless debugging in Android Studio in two ways. In this article, we will see the both way to enable wireless debugging in Android Studio. Enable Wireless Debugging of Android Studio in Ubuntu Linux Command Line To enable this you have to install android-tools-adb on your system. To install this please run below command …

Read More
PHP-logo

Install PHP Version (7.3, 7.2 or 7.0) on Ubuntu 19.04, 18.04 & 16.04 via PPA

Thanks to Ondřej Surý for maintaining PPA of most the popular PHP versions on launchpad. PHP 7.3 is the current & stable version of PHP. You can check the PHP Release History. PHP 7.3 has support till 6 December 2020. If you want to install the specific version of PHP, then this article can be helpful for you. In this article we will help you in installing PHP 7.3, 7.2 or 7.0 using PPA on Ubuntu 19.04 18.10 LTS, 18.04 LTS, 16.04 LTS, 14.04 LTS or 12.04 LTS systems. Install PHP 7.3 on Ubuntu 19.04, 18.04 & 16.04 PHP 7.3 is the current & stable version of PHP. Use the following set of commands that is installing software-properties-common and then …

Read More
Generate Random String Number in PHP JavaScript Ruby Python

Generating Random String Using PHP, JavaScript, Ruby, Python

Sometime in the programming world, you may need to generate a random string for any purpose, just like to random password suggestions, random passwords for your users. Today, In this Article we will study how can we achieve that in the easiest and fastest way. Random password / Random String can be generated with fully-custom functions but when we compare that with custom function those uses pre-defined functions of that language then that will be the best and fastest. As pre-defined function’s definitions are already compiled where the fully-custom functions are not compiled. Compiler/Interpreter will compile the code (fully-custom function) before executing that. And that will take a couple of microseconds to make it executable. But when it comes with …

Read More
Install Open SSL Windows10 Localhost

How to Install OpenSSL Light on Windows 10

What is OpenSSL? OpenSSL is a general purpose cryptography library that provides an open source implementation of the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) cryptographic protocols. It is a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) cryptographic protocols. So to install SSL or to make SSL/https working on any server/system you have to install OpenSSL. Therefore we will show you how you can install OpenSSL on your Windows 10 so that you can run SSL/https on your localhost system. Download OpenSSL Setup for Windows 10 Click here and download appropriate OpenSSL as per your windows 10 (32-bit / 64-bit). Install OpenSSL After successfully download please follow the steps to …

Read More
Setup SSL On Localhost

How to add SSL/HTTPS to localhost WAMP Server

Install OpenSSL Download appropriate OpenSSL as per your windows bit (32-bit / 64-bit) from http://slproweb.com/products/Win32OpenSSL.html and install. While installing the setup it will ask you to select a directory for installation. You can install in any drive. So I am installing in my ‘E’ drive. You can read our article How to Install OpenSSL Light on Windows 10. And after install its path is E:\OpenSSL-Win64 Generate self-signed key and certificates for localhost Open E:\wamp64\bin\apache\apache2.4.33\conf\ folder and create a folder ‘ssl-certs’. Now, in cmd (Command Prompt) navigate to E:\wamp64\bin\apache\apache2.4.33\conf\ssl-certs directory and run following command. You can change the value for -days to the expiry days. I am creating certificates for the very long-term 😀

After certificates & key successfully created you should match …

Read More
Laravel

Laravel 5.7 HTTP URL Redirects

Today in this article we will discuss the HTTP URL Redirection in Laravel 5.7.  Laravel HTTP Redirect is an instance of Illuminate\Http\RedirectResponse class, which contains all necessary headers that needed to redirect the user to specific URL. Laravel provides many ways to generate RedirectResponse instance. redirect helper is the simplest way to redirect user to another URL. redirect helper is a global helper method. Redirect To URL in Laravel This is the simplest way to redirect the user to a particular URL.

Note: In the above example, If user hits the /dashboard URL then we are redirecting that user to new URL and that is /home/dashboard. Redirect Back To The Previous Page in Laravel Laravel is a very powerful PHP framework …

Read More