PHP 8.6.0 Alpha 2 available for testing

Voting

: max(five, eight)?
(Example: nine)

The Note You're Voting On

turabgarip at gmail dot com
1 year ago
Note that for fopen() to create files when called with such mode, the path you have given needs to exist as fopen() cannot create directories; but only files it can create. This is normal behavior.
<?php
// Write log file, create if not exists
$log = fopen('/var/logs/someapp/error.log', 'wb');
// This will silently fail if /var/logs/someapp directory doesn't exist
?>

<< Back to user notes page

AltStyle によって変換されたページ (->オリジナル) /