PHP touch() Function
Complete PHP Filesystem Reference
Definition and Usage
The touch() function sets the access and modification time of the specified
file.
This function returns TRUE on success, or FALSE on failure.
Syntax
touch(filename,time,atime)
|
Parameter |
Description |
filename |
Required. Specifies the file to touch |
time |
Optional. Sets the time. The current system time is set by
default |
atime |
Optional. Sets the access time. Default is the current
system time if no parameters are set, or the same as the time parameter if
that parameter is set |
Tips and Notes
Note: If the specified file does not exist, it will be created.
Example
<?php
touch("test.txt");
?>
|
Complete PHP Filesystem Reference
Learn how your website performs under various load conditions
|
|
WAPT
is a load, stress and performance testing tool for websites and web-based applications.
In contrast to "800-pound gorilla" load testing tools, it is designed to minimize the learning
curve and give you an ability to create a heavy load from a regular workstation.
WAPT is able to generate up to 3000 simultaneously acting virtual users using standard hardware configuration.
Virtual users in each profile are fully customizable. Basic and NTLM authentication methods are supported.
Graphs and reports are shown in real-time at different levels of detail, thus helping to manage the testing process.
Download the free 30-day trial!
|
|