|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
I am trying to include files in a form field (textfield) but I don't want the PHP within the
document to process. Is there any way to do that? For instance. <textarea cols="90" rows="25" name="register_tables"><? include("client_register_tables.php");?></textarea> Would anyone know how to process that file without having it parse? (because when it parses, it displays errors) I tried importing just a .txt file but it still tries to process that file (because ith as PHP tags in it) |
|
#2
|
||||
|
||||
|
So you're wanting just to display the PHP code? Instead of including the file, consider opening it and printing its contents, wrapped in htmlentities() or one of the similar functions to change < and > tags to > and <g tags.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
|
#3
|
|||
|
|||
|
I already tried that, the problem is that the tags within the textarea will be
reexported once they are submitted again (throug hte form) Which means they will have to be intact. I just want them to be imported (into the textarea) without running. |
|
#4
|
|||
|
|||
|
Try this,
<textarea cols="90" rows="25" name="register_tables"><? echo highlight_file("client_register_tables.php");?></textarea> |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > including a file but not processing its contents (when php tags occur) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|