Jump to content

PHP CODE


ecabrera

Recommended Posts

I put this in one of my scripts that I was going to make open source:

<?php
$output = strtoupper( trim( isset($_REQUEST['source']) ? $_REQUEST['source'] : "false" ) );
if ( $output == "TRUE" ) {
  header('Content-type: text/plain');
  echo ( file_get_contents( "cool.php" ) );
}
else {
?>
<html>
<head>...

The show_source() function is supposed to do syntax highlighting. I guess it depends on what you are doing.

Link to comment
https://forums.phpfreaks.com/topic/260226-php-code/#findComment-1333811
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.