When I launch a .php file from Apache 24/htdocs, it works properly by using http:/localhost/example.php.
This