Vince889 Posted June 2, 2009 Share Posted June 2, 2009 How do I make PHP display? I don't mean synxtax highlighting, but I want the actual php document to display as if it were plain text. If I navigated to www.example.com/doc.php, I don't want to see the html output, but I want the actual, unexecuted PHP document. Is there something i need to CHMOD? Something with apache I need to configure? Quote Link to comment https://forums.phpfreaks.com/topic/160707-how-to-make-php-display/ Share on other sites More sharing options...
Maq Posted June 2, 2009 Share Posted June 2, 2009 I think you can surround your tags with & tags. Quote Link to comment https://forums.phpfreaks.com/topic/160707-how-to-make-php-display/#findComment-848125 Share on other sites More sharing options...
ldougherty Posted June 2, 2009 Share Posted June 2, 2009 or you can make it so PHP does not parse the file, in other words rename it to .txt or .htm or whatever. As soon as PHP parses the file the code will be interpreted. Quote Link to comment https://forums.phpfreaks.com/topic/160707-how-to-make-php-display/#findComment-848127 Share on other sites More sharing options...
Altec Posted June 2, 2009 Share Posted June 2, 2009 Yep, just add .txt to the end, so if you had "code.php" it would be "code.php.txt" Quote Link to comment https://forums.phpfreaks.com/topic/160707-how-to-make-php-display/#findComment-848152 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.