
EricSerra1987
Alfa
Verificación en dos pasos activada
Verificado por Whatsapp
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
hola! si alguien me puede ayudar en este error se lo agradecería mucho.
actualice a la ultima versión php y tengo este error.
PHP Warning: Use of undefined constant w - assumed 'w' (this will throw an Error in a future version of PHP)
function query_write($tag,$file='../zapros.php'){
$armar=array();
$armar=unserialize( trim( @file_get_contents($file) ) );
if(count($armar)<=1) $armar[3]="";
@array_unshift($armar, $tag);
$armar = @array_unique($armar);
if(count($armar)>5000) { $armar=array_chunk($armar, 5000); $armar=$armar[0];}
$fff=fopen($file,w); flock($fff, LOCK_EX); //error en esta linea
fputs($fff,serialize($armar) );
flock($fff, LOCK_UN);
fclose($fff);
}
actualice a la ultima versión php y tengo este error.
PHP Warning: Use of undefined constant w - assumed 'w' (this will throw an Error in a future version of PHP)
function query_write($tag,$file='../zapros.php'){
$armar=array();
$armar=unserialize( trim( @file_get_contents($file) ) );
if(count($armar)<=1) $armar[3]="";
@array_unshift($armar, $tag);
$armar = @array_unique($armar);
if(count($armar)>5000) { $armar=array_chunk($armar, 5000); $armar=$armar[0];}
$fff=fopen($file,w); flock($fff, LOCK_EX); //error en esta linea
fputs($fff,serialize($armar) );
flock($fff, LOCK_UN);
fclose($fff);
}