To Get Selected Date From Calendar in PHP using Ajax, we use jQuery date-picker and bootstrap form. Here are the steps to get the selected date from the form using Ajax, Live View Below Set up jQuery calendar using jQuery CDN. HTML form for input From and To Date. Ajax Script to POST the selected […]
How to Check Page is Refreshed in PHP
To Check Page is Refreshed in PHP, we use PHP superglobal variable. $_SERVER[‘HTTP_CACHE_CONTROL’]: Cache-control is an HTTP protocol header which specifies the policies of browser caching on both side, one is server-side and another is client-side. These policies are used to check what information is cached and the maximum age of that information on the […]
User Login Form Validation using Ajax in PHP
To create User Login Form Validation using Ajax in PHP, first, we create major files which we connected to each other. Here we create a PHP script to get the data and for database connection and create a JS file for Ajax validation. After checking the complete source code you can also download it from […]
How to Open an External URL in PHP
To open an external URL in PHP, we use cURL which is a PHP library. cURL is also a command-line tool that is used to send files and download data over HTTP and FTP. Check live view below. On this, we takes 2 steps to doing this. Create an HTML form with only a button […]
How to Convert Number to Words in PHP Ajax
To Convert Number To Words in PHP Ajax, we use numfmt_create() and numfmt_format() function. Both functions are inbuilt PHP functions which also part of Human Language and Character Encoding Support. These functions are the defined under the intL (Internationalization Functions) functions. To Convert Number To Words, first, we create an HTML form where we take […]
Set DateTime With FileName While Uploading in PHP
To Set DateTime With FileName While Uploading in PHP here is only 3 steps to append a timestamp to the filename in PHP, Create a HTML form with input file type. Create PHP code to upload the file. Setting the date and time on the name of the file using PHP date() function. Note: Do […]
Get Second And Third Word from Strings in PHP
To Get Second And Third Word from Strings in PHP we use PHP’s inbuilt function named as explode() function. Before we check the source code to get any word from any position using PHP, we do some introduction about PHP explode function. Introduction to Explode Function in PHP The explode() function breaks the given string […]
How to Encode and Decode Image Path in PHP
To Encode and Decode Image Path in PHP, we use 3 main PHP inbuilt functions, file_get_contents() Function: The file_get_contents() function is PHP inbuilt function that can help to read files into a string. This function uses the memory mapping technique to doing this which is also supported by the server. file_put_contents() Function: This function can […]
Export MySQL Data to Excel in PHP Using Ajax
Export MySQL Data to Excel in PHP Using Ajax, for doing this task we have to follow 4+ steps where we create a table to show the data and then export that visible MySQL data to an excel sheet. Here are the 4+ steps to Export MySQL Data to Excel in PHP Using Ajax, Create […]