PHP

Generating XML file for Google Merchant
An example of generating an XML feed for Google Merchant in PHP with a minimum set of required fields.
96
0
Writing and reading files in PHP
Examples of saving and reading text data and arrays to files.
73
0
How to prevent opening a site in an iframe
Several options for how to prevent opening pages of your site in an iframe using htaccess, PHP and JS.
269
0
How to read SSL certificate from PHP
The SSL certificate can be obtained using the Stream Context, and the openssl_x509_parse() function will help to parse...
95
0
Seconds to minutes, hours, days
Two PHP functions for converting seconds to days, hours, minutes.
57
0
array_unique for multidimensional arrays
The array_unique function returns an array without duplicate values, and it works with multidimensional arrays as well.
32
0
Disable PHP caching
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...
57
0
Checking data with regular expressions
A collection of regular expressions with examples in PHP for validating data from form fields.
49
0
Regular Expression Shortcodes
Often on sites, it becomes necessary to insert dynamic information blocks into the texts of pages - banners, phones...
25
0
Examples of using cURL in PHP
cURL PHP is a library for receiving and transmitting data via protocols such as HTTP, FTP, HTTPS. The library is used...
329
0
Session lifetime in PHP
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.
152
0
Working with PHP arrays - creating, filling, deleting
Basic examples of working with PHP arrays. Creation, filling, extraction and removal of values.
107
0