|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Actually,I want to display one php file to textarea,alter it,and putting the resultant value to that php file i simply i want to edit it.Here I got the output from text area correctly.But when appending it to the .php file,it doesn't works.
ie fopen("----.php","a+"); Is it possible.. Can any one help me...... Thank u.. |
|
#2
|
|||
|
|||
|
I imagine you'll want to do fopen ("----.php", "w"); this will rewrite the file each time and then you can put the contents of the textarea into it. If you open it for append then you'll add everything in the textarea on to the end of the file. Not sure what "a+" does but don't think its what you want in this case.
Hope this helps, -KM- |
|
#3
|
|||
|
|||
|
It doesn't works for write mode also,..ie fopen(---.php,"w")Is there any other way to do this.....
Thank u |
|
#4
|
|||
|
|||
|
Can you be a bit more specific please. Just saying "it doesn't work" makes it hard to find the problem. Post your code, error messages it generates and describe the faulty behaviour. That makes it a lot easier to find out where the problem is.
Thanks, -KM- |
|
#5
|
|||
|
|||
|
<input type = "textarea" value = "<? include "file.php"; ?>">
this should do the job. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > how to edit the contents of .php file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|