PHP

Parse domain name from URL is used in many cases in the web project. In this short tutorial, we’ll provide a simple code snippet to get domain name from URL in PHP. Using our example script, you’ll be able to extract only the domain name from any type of URL.

By: CodexWorld Jul 11, 2016

If your chrome version is 50, then you’ll encounter that HTML5 Geolocation API is not working. In Chrome version 50, HTML5 Geolocation delivered over HTTP no longer supported by Chrome. The getcurrentposition() and watchposition() are deprecated on insecure origins in Chrome 50.

By: CodexWorld Jun 9, 2016
PHP

Validating a URL at the time of receive user input by form is very important. Here we’ll provide the simple PHP code to validate a URL in PHP. Using filter_var() function with FILTER_VALIDATE_URL Filter, we can easily validates a URL in PHP.

By: CodexWorld May 26, 2016
PHP

Here we’ll provide the simplest way to add days, minutes, hours and seconds to time using PHP. In PHP, using date() and strtotime() function you can easily increase or decrease time.

By: CodexWorld Aug 3, 2023

JavaScript Date object help us to work with dates. Use new Date() to create a new object with current date and time. From Date object you can get current date in Y-m-d format and current time in H:i:s format.

By: CodexWorld Sep 24, 2020

When the navigation menu is displayed at the left side and the page content on the right side, left side div should be full-screen height. You can make a div 100% of window height easily using CSS or jQuery. Simple solution to set the div height to fit to full screen in the browser window.

By: CodexWorld Mar 29, 2016

Are you working on Google Maps? And want to display it in the jQuery tab? Then you will definitely face one problem – Google Map is not working inside of a hidden div. Here we’ll provide the simple solution for that.

By: CodexWorld Mar 8, 2016

PHP date_default_timezone_set() function is used to sets the default timezone used by all date or time functions. In CodeIgniter, the best place to set the timezone is index.php file of application root. Place the date_default_timezone_set() with your desired timezone in the main index.php file of your application.

By: CodexWorld Feb 25, 2016

focus() event of jQuery UI autocomplete lets you to show all options before start entering. Means the autocomplete list would be shown on focusing the input box. Once start entering in the input field, autocomplete list would be filtered as per the entered character.

By: CodexWorld Feb 16, 2016
keyboard_double_arrow_up