This is a discussion on Showing PHP source within the PHP Programming forums, part of the Web Development category; Hi, I have seen a special feature in PHP: Hypertext Preprocessor site, they are showing each and every page's ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, I have seen a special feature in PHP: Hypertext Preprocessor site, they are showing each and every page's PHP source in separate page. I don't think so, they are doing this in a hard coded manner. Because they are showing the PHP source for all pages, even for the separate page, where they are showing the PHP source. Can any body explain me how this works out?? |
|
#2
| |||
| |||
| u can use the show_source($_SERVER['SCRIPT_FILENAME']); following is the example: if ($_REQUEST['showsource']) { print "<hr><a name='source'> </a><h1>PHP Source:</h1>"; $source= show_source($_SERVER['SCRIPT_FILENAME']); } where showsource is the post or get variables which is set when view source code button or link is clicked
__________________ J.Vijayanand |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Visual Source Safe -> Source Control in Team Foundation | shaalini | Server Management | 3 | 09-09-2009 07:08 AM |
| only showing a value if it equals something? | nicolem443 | PHP Programming | 0 | 12-26-2008 11:09 AM |
| show clocks, one showing the current time, and another showing a time 12 hours behind | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 02-13-2008 09:15 PM |
| How can I hide the JavaScript source code from "view source" function of the browser? | KiruthikaSambandam | HTML, CSS and Javascript Coding Techniques | 1 | 11-13-2007 08:17 PM |
| How to run win app without showing it in task manager | Gopisoft | VB.NET Programming | 1 | 07-18-2007 12:36 AM |
Our Partners |