Update examples/write.php