Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #unable #open #file #error #php
ADD COMMENT
Topic
Name
4+2 =