Jump to content

PHPS color formatting and displaying PHPS files


HaLo2FrEeEk

Recommended Posts

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.