Forums

fopen bug on cf6?

teldrive 15 Oct, 2018
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;
}
?>
healyhatman 15 Oct, 2018
Have you tried using a PHP block instead of a custom code block, out of interest?
teldrive 16 Oct, 2018
yes I did, with same results, in my understanding php block just avoid to use
<?php
?>
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger