문제

I'm using Xampp no problem. I normally type localhost/assignment2 and the list of php pages I created come up but I just created an index.php page and now when I type localhost/assignment2 the index page is showing instead of my list a programs I made.

Is there a way I can rectify this or do I need to do something specific to it.

도움이 되었습니까?

해결책

You server will always search for index.php, index.html and index.htm in your folder and show it if it exists. If none of these files exists the server shows a list of all files or an error, depending on your configuration.

다른 팁

This is happening because there is conflict between the name of xamp's index.php and the index.php that you have created.The same problem will arise if you create home.php. By default xamp gives preference to the index.php file and instead of showing the index of files it ends up displaying index.php. So the solution is to change your index.php filename to index1.php .

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top