﻿
﻿
﻿
﻿<html>
 <head>
  <title>Test PHP</title>
 </head>
 <body>
 
 
 <?php
 
 ?>
 <?php
 
 ?>
 <?php
 
 ?>
 <?php
 
 ?>
 
 
 <?php echo "Hello World!<p>"; ?>
 
﻿ 
<?php

// current directory
echo getcwd() . "\n";

chdir('abigail-appunti');

// current directory
echo getcwd() . "\n";

?>






 <?php
 ///   scansione cartella
 
 

$dir    = getcwd();
$files1 = scandir($dir);
$files2 = scandir($dir, SCANDIR_SORT_DESCENDING);

print_r($files1);
print_r($files2);


 scandir(getcwd())
 ?>
﻿
﻿
﻿<?php /* In questo script vedremo quali sono gli elementi che compongono un file PHP. Questo ad esempio è un commento multilinea. */

 // questo invece è un commento su singola riga 
 
 # questo è un altro tipo di commento 
 
 $nome = "Simone"; echo "Il mio nome è " . $nome;

 function stampa_nome($nome) 
 
 { echo "<strong>Ciao " . $nome . "</strong>"; } 
  ?>
 
 <h4>Where Does It Come From?</h4>
 
 <?phpstampa_nome($nome); ?>
﻿
﻿
﻿
﻿</body>
</html>