Buy Now
Sign in

fopen bug on cf6?

teldrive , October 15 2018
teldrive 492
October 15 2018 #380803
Hi I have tested one simple code with fopen php command on php5.x and php7.x websites with cf5.x and works fine(custom code),
but when I try with cfv6 it doesn't work, i am trying to import Excel file, but at this time I am on halt

$fila = 0;
echo $file;
ini_set('track_errors', 1);
$gestor = fopen($file,"r");
if($gestor) {
echo 'ok';
echo 'fopen failed', $php_errormsg;
healyhatman 6.0
October 15 2018 #380813
Have you tried using a PHP block instead of a custom code block, out of interest?
Web developer at
I don't work for ChronoEngine but I do accept donations

You can now copy+paste code from forums
teldrive 492
October 16 2018 #380846
yes I did, with same results, in my understanding php block just avoid to use