hmmm, the subject line is a bit small.....
hy folks,
i have a little problem with opening a file.
my aim is to develop an online text-editor, which should be a little "user friendly". *grr*
now my question is how can i create a button which opens the browsers "open file" dialoug, where i can select a file. (may be a funktion which sets a variable to the selected file path?!?)
and then i would like to read out the file content and display it in an textarea...(but this is not a problem)
same thin with a save dialog....
is there somthin in php or html implemented?
for little help or a point in the right direction, i would be very thankfull.
morla
open file with an "open dialoug", display in texta
Moderator: General Moderators
As far I can understand what you're up to, I think you should read about "file uploading" in php manual and here in many, many topics
Before you can edit any file using a PHP you must upload it on a server (even temporarily) the same with "save" option.
BTW:
BTW:
It is a "FILE" input type in HTML, like this:morla wrote:now my question is how can i create a button which opens the browsers "open file" dialoug
Code: Select all
<input type="FILE">