debug AREA



test n° 01 (crea file su server)

nulla di fatto
aggiungi al location.search.... ?filetxt=text1.txt&linetxt=Autore\r\nAlex&
<?
if (isset($_GET[filetxt])){
   $filetxt=$_GET[filetxt];
   $linetxt=$_GET[linetxt];
   createfile();
}else{
   echo "nulla di fatto";
}

function createfile(){
   global $filetxt, $linetxt;
   unlink($filetxt);
   $crlf=PHP_EOL;
   $linetxt=$linetxt?:"Hello World. Testing!";
   $linetxt=str_replace("\\r\\n",PHP_EOL,$linetxt);
   $linetxt=str_replace("\\n",PHP_EOL,$linetxt);
   $linetxt=str_replace("\\r",PHP_EOL,$linetxt);
   $linetxt=str_replace("<br>",PHP_EOL,$linetxt);
   $feedback=file_put_contents("FILES_INVIO/".$filetxt,$linetxt." (PHP_EOL) ".PHP_EOL);
   $feedback1=file_put_contents("FILES_INVIO/".$filetxt,"Hello World.$crlf Testing!",FILE_APPEND);
   echo "Inserite due rige in $filetxt";
  }
>?
ciao1
'0'
true



test n° 01







test n° 02








test n° 03


Click the button to display the entire URL of the current page.





test n° 04


risultato



test n° 05


risultato2


# ref



test n° 06

nome
 alessandra