AviNahum Posted July 12, 2009 Share Posted July 12, 2009 hey, i wondering if it possible to display all function content in <textarea> and make some changes and save it... for example: <?php function abc() { $a = 5; echo $a; } ?> then i dispaly in <textarea> this: $a=5; echo $a; and then i want to make some changes and save it... possible? Link to comment https://forums.phpfreaks.com/topic/165683-change-function-content-with-form-possible/ Share on other sites More sharing options...
ignace Posted July 12, 2009 Share Posted July 12, 2009 Yes, however you will need eval() to re-create the function Link to comment https://forums.phpfreaks.com/topic/165683-change-function-content-with-form-possible/#findComment-873974 Share on other sites More sharing options...
.josh Posted July 12, 2009 Share Posted July 12, 2009 or you could have it in its own file and in your script include or require it. Link to comment https://forums.phpfreaks.com/topic/165683-change-function-content-with-form-possible/#findComment-874003 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.