View Full Version : How do i show the source code...
Forge
14-01-2008, 08:24 PM
How do i show the source code on my output page?
Im adding tutorials to my website and i dont know how to show it :(
Mr Macro
14-01-2008, 08:44 PM
If there PHP rename them to somthing like "file.phps" then do file_get_contents and echo it out.
Agnostic Bear
15-01-2008, 03:54 PM
If there PHP rename them to somthing like "file.phps" then do file_get_contents and echo it out.
Or you could just rename it to .phps, that will automatically show the code.
H0BJ0B
15-01-2008, 05:41 PM
Clicky Clicky (http://www.tizag.com/phpT/php-magic-quotes.php)
^^^^^^^^
That what you looking for?
Forge
15-01-2008, 07:50 PM
Thanks for the help but ive decided to use text area's :P
Decode
15-01-2008, 07:56 PM
<textarea>
<?php include("URL HERE"); ?>
</textarea>
Forge
15-01-2008, 07:58 PM
Or to make it even simpler
<textarea>
CODE
</textarea>
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.