My problem is that when I send my php file as root to the htdocs directory it appears as this.
root mustafa # sudo cp programa.php /opt/lampp/htdocs/archivos
The php file appears with a big X on top, and when I try to execute it from XAMPP it says:
Warning: Unknown: failed to open stream: Permiso denegado in Unknown on line 0
Fatal error: Unknown: Failed opening required '/opt/lampp/htdocs/Examen/registro.php' (include_path='.:/opt/lampp/lib/php') in Unknown on line 0