PHP Display Code - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: PHP Display Code (/showthread.php?tid=49097) PHP Display Code by DJeX on 08-17-2005 at 09:04 PM
What php code would I used to display code inside another php file. code: RE: PHP Display Code by Millenium_edition on 08-17-2005 at 09:06 PM RE: PHP Display Code by DJeX on 08-17-2005 at 09:33 PM
Ok I used this: code: But it does not show the PHP code of that file it shows the number 1. Can any one help? RE: PHP Display Code by absorbation on 08-17-2005 at 09:37 PM
<?PHP RE: PHP Display Code by DJeX on 08-17-2005 at 09:42 PM Will that display the code of a php file on the screen? RE: PHP Display Code by segosa on 08-17-2005 at 09:43 PM
The php file will be parsed on the remote server before being downloaded.. so no, it won't. Change the file on the remote server to .txt so no parsing is done if you want the code to be downloaded. RE: PHP Display Code by Stigmata on 08-17-2005 at 09:46 PM
dude... RE: PHP Display Code by wj on 08-17-2005 at 09:46 PM http://us2.php.net/manual/en/function.highlight-file.php RE: PHP Display Code by Stigmata on 08-17-2005 at 09:50 PM
quote: beat you to it RE: PHP Display Code by DJeX on 08-17-2005 at 10:27 PM how would I use highlight_file()? RE: PHP Display Code by Ezra on 08-17-2005 at 10:30 PM
I tried it too, and I didn't get it to work RE: PHP Display Code by Stigmata on 08-17-2005 at 10:33 PM
http://aidan.dotgeek.org/lib/?file=PHP_Highlight.php RE: PHP Display Code by DJeX on 08-17-2005 at 11:44 PM
When I use that code I get this error. code: I've blanked out the parts on the links with ----- just so ya know. RE: PHP Display Code by WDZ on 08-18-2005 at 04:57 AM
quote:Well, the comments say... code:So apparently you need to have that "T.php" file uploaded for the script to work. |