php code displayed as plain text in the browser

Problems with the Windows version of XAMPP, questions, comments, and anything related.

php code displayed as plain text in the browser

Postby kyasanku » 28. July 2023 10:12

i am working on a project in using php but my on running my code in the browser it displays the code in plain text. M y project is saved in xampp in htdocs and i use xampp as my server, though of recent i was working on some other project which need me to create a virtual host for it in my server and i did it, since then my other projects dont run normally. how can i solve it?
kyasanku
 
Posts: 1
Joined: 28. July 2023 10:01
XAMPP version: v3.3.0
Operating System: windows

Re: php code displayed as plain text in the browser

Postby Nobbie » 29. July 2023 17:46

1) Show us your Apache configuration (i.e. the VirtualHosts etc.)
2) Show us what you enter into the browser to run your PHP file.
3) What is your project folder?
4) Is there any .htaccess file in your project folder?
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 101 guests