Convert date format timestamp

Timestamp other than the current can be achieved in various ways, which must be used according to application. If there is broken ‘data, that is, in separate variables day, month,…

READ MORE

Getting the current date

The current date can be obtained only in the timestamp format. The date of the returns funkcjatime () task planner. Close-up times can be achieved thanks to the microtime ()…

READ MORE

Validation

One of the main issues when receiving data from the user to verify their correctness. The checkdate () takes three arguments – respectively, month, day and year, the correctness of…

READ MORE

Processing date

PHP has many features that allow you to process the record date.ДИСКОНТНЫЕ КАРТОЧКИ The primary method of recording the date on Unix and derivatives is tzw.timestamp. This is the number…

READ MORE

Operations on directories

<?phpБезопасные SEO эксперименты if ($dir = @opendir ( „/ tmp”)) { while ($file = readdir ($dir)) { echo „$file \ n”; } closedir ($dir); } ?> The second way Example…

READ MORE

Processing path

PHP has many features for the analysis and processing of text variables that contain the path to the file. The basename ($ path) returns the name of the file adirnamekahovka-service.ru…

READ MORE

Information functions

When scripts for server maintenance or, for example, analyzing the file system, it is necessary to obtain information about a particular file. PHP offers a whole set of functions that…

READ MORE

file Locking

It can lead to a situation in which two or more people at a time will come to the site or just run the script. If it is, for example,…

READ MORE

Crop your files

PHP includes a function for reducing the file size to the desired size. The ftruncate (int index, int size) is just such a thing. Keep in mind that any data…

READ MORE