Search code examples
phpcssxampplocalhost

How to run php with XAMPP's apache?


So I have a .php file, I wanted to see it's output. So, I open my xampp. I press the start button 'start' for apache. I go to my browser and type localhost/filename The problem is, instead of seeing the file directory of my computer. I saw the output of my php. I thought it was something that I shouldn't be concerned about but then when I do some changes to my code, and I refresh my output on the browser nothing happens like nothing changes even though I erase the .css file in my php code.

This is the image

See the link and yeah, I type the directory but I was directed to my output in instant and my apache doesn't work like this like a month ago. Should I update my apache? or what?

This is xampp for windows


Solution

  • DID YOU open XAMPP Control Panel

    DID YOU 'Start' Apache, 'Start' MYSQL

    DID YOU click 'Explorer' (right side of window)

    DID YOU delete the default index.php file

    DID YOU type in your browser 'localhost' and press ENTER?