Hello all,
Some websites like php.net allow you to see there source code. Well here is how you can do it on your website. It is very simple and give syntax higlighting and all. Just use the following code to show the source code of a file on your website.
Then just save the file to your webserver and try it out. It should hilight all the PHP code and of course show the code. Enjoy!
Some websites like php.net allow you to see there source code. Well here is how you can do it on your website. It is very simple and give syntax higlighting and all. Just use the following code to show the source code of a file on your website.
| Code: |
|
<?php show_source("filename.php"); ?> |
Then just save the file to your webserver and try it out. It should hilight all the PHP code and of course show the code. Enjoy!
