Hello everyone and already thanks for your support . I am new to php, and I have had some problems with the installation. Obviously before you ask , I have revised post, so I hope not to be redundant.
While the situation is that I installed xampp , apache server and mysql are running but when I try to run the default index.php file :
================================================== ==========
<? php
if ( empty ($ _SERVER [' HTTPS '] ) && ( 'on' == $ _SERVER [' HTTPS '] ) ) {
$ uri = ' https:// ';
Else { }
$ uri = ' http://' ;
}
$ uri = $ _SERVER [' HTTP_HOST '] . ;
header ( 'Location : ' . . $ uri '/ xampp / ');
exit;
>
Something is wrong with the XAMPP installation
================================================== ==========
Shows me the following message in the browser :
================================================== ===========
"Object not found!
The requested URL was not found on this server . If You entered the URL manually Please check your spelling and try again.
If you think this is a server error , please contact the webmaster.
Error 404
localhost
==================================================
I do this by putting in the browser: http://localhost/xampp/htdocs/index.php .
On the other hand if I open the same file and run from netbeans shows me the following message:
=================================================
file :/ / / C :/ Users/Nexus/AppData/Local/Temp/index.php5734407163682923972.html
=================================================
Notice: Undefined index: HTTP_HOST in C : \ xampp \ htdocs \ index.php on line 7 Warning : Can not modify header information - headers already sent by (output started at C : \ xampp \ htdocs \ index.php : 7) in C : \ xampp \ htdocs \ index.php on line 8
==================================================
The funny thing is that if I run another php file from netbeans , it does well , but if I run that same file from notepad + + shows the same error: "Object not found ! ...
Well I hope someone can give me some clue from already thank you very much !