Page 1 of 1

php code displayed as plain text in the browser

PostPosted: 28. July 2023 10:12
by kyasanku
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?

Re: php code displayed as plain text in the browser

PostPosted: 29. July 2023 17:46
by Nobbie
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?