Buy Now
Sign in

fopen bug on cf6?

teldrive , October 15 at 17:52
teldrive
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

​<?php​
​$fila = 0;​
​$file="htaccess.txt";​
​echo $file;​
​$indice=array();​
​ini_set('track_errors', 1);​
​$gestor = fopen($file,"r");​
​if($gestor) {​
​echo 'ok';​
​}else{​
​echo 'fopen failed', $php_errormsg;​
​}​
​?>
Teldrive
healyhatman
Have you tried using a PHP block instead of a custom code block, out of interest?
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman
teldrive
yes I did, with same results, in my understanding php block just avoid to use
<?php
?>
Teldrive