An example of generating an XML feed for Google Merchant in PHP with a minimum set of required fields.
Examples of saving and reading text data and arrays to files.
Collection of methods for reloading a page or browser tab.
Several options for how to prevent opening pages of your site in an iframe using htaccess, PHP and JS.
The SSL certificate can be obtained using the Stream Context, and the openssl_x509_parse() function will help to parse...
Below is a list of MIME headers and file extensions.
Two PHP functions for converting seconds to days, hours, minutes.
The array_unique function returns an array without duplicate values, and it works with multidimensional arrays as well.
Sometimes on hostings PHP opcache caching is enabled by default. Edits were made in the code, but on the site everything is displayed as before...
A collection of regular expressions with examples in PHP for validating data from form fields.
Often on sites, it becomes necessary to insert dynamic information blocks into the texts of pages - banners, phones...
cURL PHP is a library for receiving and transmitting data via protocols such as HTTP, FTP, HTTPS. The library is used...
By default, in php, the session lifetime is only 24 minutes, and cookies are saved until the browser is closed, such parameters are set on many hosting services.
Basic examples of working with PHP arrays. Creation, filling, extraction and removal of values.
To distinguish between direct and AJAX requests, simply check the value of the $ _SERVER global variable
The Last-Modified header helps to optimize the loading of web pages and make the job easier for search engines.