Site5 - Built For Designers & Developers MENU

PHP showing source code when run and not the actual display page.

[2 Grey Star Level]

Dear Sir / Madam,

I have installed WAMP server with PHP Designer 7 software.

When I run a .PHP page I get no error, but it displays the source code and not the actual display page.

Do you know how to fix the problem.

Please reply.

Thank you.

John.

Answer #1

Hi there! This is not something we would be able to offer much help on, as we run Linux servers, rather than Windows. However, with Apache, most often this issue is caused by incorrect mime types being set, which causes a failure to read PHP code as actual code, and instead reads it as plain text. This is not the only possible cause (and may not even apply in a WAMP environment), but it is the most common cause in Linux servers.

Answers Answered By: jdavey [359 Blue Star Level]

Answer this Question

You must be Logged In to post an Answer.

Not a member yet? Sign Up Now »

Money Back Guarantees
Click to verify BBB accreditation and to see a BBB report.