![]() |
Display PHP code in text area help.
Hi, I have a text area, and I would like to display data from example.php into it, for example.
I want this to show in the text area, but obviously with my own. <?php $var = "var"; $var2 = "var"; ?> So basically, the PHP code from the file. If anyone could help me with this, it would be greatly appreciated. |
Just echo what you need inside the form, someting like this
Code:
<textarea> |
Quote:
I have an alternative for now, just useful if anyone can help with the displaying of a complete php file. |
Perhaps you could get some use out of these PHP functions:
highlight_file(): http://se.php.net/manual/en/function.highlight-file.php highlight_string(): http://se.php.net/manual/en/function...ght-string.php Good luck :) |
| All times are GMT. The time now is 02:59 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0