<?php $fichero = dirname(__FILE__) + ' $Nombreyapellidos.php'; $f = fopen($fichero, "a"); fwrite($f, $nombre . $apellidos); fclose($f); ?>