|
<?
if($view_source) {
Header('Content-Type: text/plain');
} ?>
<A HREF="<? echo $PHP_SELF;?>">Click here for raw source</A>
|
|
|
Usage Example
|
<?php
if($view_source) {
Header('Content-Type: text/plain');
} ?> <HTML>
<HEAD>
<TITLE>Test document</TITLE>
</HEAD>
<BODY>
<H1>Test document</H1>
<HR>
<A HREF="<? echo $PHP_SELF; ?>?view_source=1">View HTML source</A>
</BODY>
</HTML>
|
|
|
Rate This Script
|
|