HaLo2FrEeEk Posted May 31, 2009 Share Posted May 31, 2009 You might know that a php file uploaded with a .phps extension will display the php source of that file. Within the php.ini file there are settings that determine the colors of the highlighting of certain parts of that php file. Well, my php.ini is set to default, and a phps file displays, but in all black. There's no color formatting, I'd like there to be. I don't have much control over my php.ini since I'm on shared hosting but I can make a copy of it on my own server if I have to. Also, I'm trying to figure out a way to display a php file as PHP Source without having to physically have a .php and .phps file present on the server, I only want the one .php file there. I tried to use htaccess' rewriterule but it's just trying to execute the php file, not display it. Is there a way to have a dynamic phps file that reads it's contents from the .php file there? This will save me from having to save changes to both the .php and .phps files. Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/160403-phps-color-formatting-and-displaying-phps-files/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.