Jump to content

display raw code


Chris Coin

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.
Link to comment
https://forums.phpfreaks.com/topic/6706-display-raw-code/#findComment-24361
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.
Link to comment
https://forums.phpfreaks.com/topic/6706-display-raw-code/#findComment-24363
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.
Link to comment
https://forums.phpfreaks.com/topic/6706-display-raw-code/#findComment-24388
Share on other sites

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.