Home Tutorial Php Phpfiles PHP is_writable Function with example

 
 

Share on Google+Share on Google+
PHP is_writable Function with example
Posted on: October 30, 2009 at 12:00 AM
Advertisement
In this part of the PHP tutorial we will learn about the function is_writable in context of file handling. And also we will see the example related to the is_writable function

Syntax for PHP is_writable Function
bool is_writable(file_name)

  • It states whether the given file is a writable file or not.


Example of PHP is_writable Function

Code
<?php

    $a
=is_writable("c:/rose1/ram.txt");
    if
($a)
       echo
"file is writable ";
    else
       echo
"file ss not writable ";
?>


Output
file is writable

Advertisement

Related Tags for PHP is_writable Function with example:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: October 30, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com