Php script display the source code but dont execute?

lmark101

New member
I would like for one php page on my local server to only show the source code and it not be executed. I have seen other people do the same, like when they visit script1.php it gets executed and u see the result. But when someone visits script2.php on their site, in the same directory, you see the source code an nothing runs that im aware of.

I use xampp for my server. It is run locally.
its hard to word correctly but i want so that when i visit script.php it doesnt run, instead it shows the source code. I only want that for one script, so lets say i visit script2.php, it actually runs and doesnt display the source.
How can i do that?
 
Back
Top