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

<?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 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 SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman

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
<?php
?>
Teldrive