1
votes

When I try to running following PHP script in my web browser :

<?php
    phpinfo();
?>

Its showing me following error, which I cannot understand as I am beginner and this error makes no sense.

Notice: Undefined index: HTTPS in /Applications/XAMPP/xamppfiles/htdocs/xampp/test.php on line 1

P.S. I am using XAMPP on MAC OS X machine. And, executing script via this URL http://localhost/xampp/test.php

1
What happens if you try 127.0.0.1/xampp/test.php?Darren
Is test.php the three-line script?suztomo
set the error reporting of your source by placing this line on top of your page error_reporting (E_ALL ^ E_NOTICE);ken lun
@Darren its showing error on it.Ravin Shah
@gonbe Yes, it the sameRavin Shah

1 Answers

1
votes

you can put your file on

/Applications/XAMPP/htdocs/test.php

and run it

http://localhost/test.php