Does anyone have a script using which i can extract the code of a php/asp file instead of the executed html code...
all php codes was compiled at server and convert to html codes after convert , send it to client . you can't extract php codes .
If it's going on the same server, you could use the highlight_file function. <?php echo highlight_file("./filename.php"); ?> PHP:
You can use PHP's highlight_string or highlight_file PHP: You can save your file with .phps extension (this doesnt work on all server I believe...) Or you can use a custom function here: http://www.brainerror.net/scripts_php_highlight.php