Jump to content

Archived

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

Chris Coin

display raw code

Recommended Posts

Generally, PHP files will get interpreted by the Web server and PHP executable, and you will never see the code behind the PHP file. If you make the file extension .PHPS, a properly-configured server will output a color-formated version of the source instead of the HTML that would normally be generated.

Share this post


Link to post
Share on other sites
[!--quoteo(post=362125:date=Apr 5 2006, 11:11 PM:name=Hooker)--][div class=\'quotetop\']QUOTE(Hooker @ Apr 5 2006, 11:11 PM) [snapback]362125[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Generally, PHP files will get interpreted by the Web server and PHP executable, and you will never see the code behind the PHP file. If you make the file extension .PHPS, a properly-configured server will output a color-formated version of the source instead of the HTML that would normally be generated.
[/quote]

so ther isnt a certain "tag" i could use. hmmm, i guess the only way is to color the code myself.

Share this post


Link to post
Share on other sites
[!--quoteo(post=362127:date=Apr 6 2006, 04:14 AM:name=Chris Coin)--][div class=\'quotetop\']QUOTE(Chris Coin @ Apr 6 2006, 04:14 AM) [snapback]362127[/snapback][/div][div class=\'quotemain\'][!--quotec--]
so ther isnt a certain "tag" i could use. hmmm, i guess the only way is to color the code myself.
[/quote]


Look into using highlight_string or highlight_file on the php.net website.

Share this post


Link to post
Share on other sites

×

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.