If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

file_exists

Started by chinmay.sahoo, 12-24-2015, 02:44:11

Previous topic - Next topic

chinmay.sahooTopic starter

The file_exists function is a simple function you will use again and again if you use filesystem functions at all. It simply checks the local filesystem for a file of the specified name.

Quoteif (!file_exists("testfile.php")) {
$fd = fopen("testfile.php", "w+");
}

The function returns true if the file exists, false if not found. The results of this test are stored in a cache, which may be cleared by use of the function clearstatcache().



If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...