Answers for "unable to open file error in php"

PHP
0

unable to open file error in php

$myFile = '/path/to/myFile.txt';
if (!file_exists($myFile)) {
  print 'File not found';
}
else if(!$fh = fopen($myFile, 'w')) {
  print 'Can\'t open file';
}
else {
  print 'Success open file';
}
Posted by: Guest on March-15-2021

Code answers related to "unable to open file error in php"

Browse Popular Code Answers by Language