salve, come faccio a richiamarmi nello specifico la funzione Save() della classe "test"?
codice:
class test
{
/**
* Save a file
*/
public static function Save($FichierIn,$Data,$FichierOut)
{
if ($FId=fopenw($FichierOut,'w'))
{
$Data=self::Make($FichierIn,$Data);
fwrite($FId,$Data,strlen($Data));
$Out=TRUE;
}
else
{$Out=FALSE;}
return $Out;
}
}
codice:
<?php
include"classe.php";
$FichierIn = "file_in";
$FichierOut = "file_out";
$Data="nome";
new test();
$Out= Save($FichierIn,$Data,$FichierOut)
?>
Fatal error: Call to undefined function Save()
Grazie.