It's certainly possible, but the only person that will be able to view it is you and anyone else that happens to have a file with that path and name on their local PC... only they'll view their own file, not yours.
So what you're looking to accomplish... isn't accomplishable in the way you're probably looking for. You'll have to upload it to a remote server where everyone will have access, then link to that path.
I see! I don't know what your kmplayer is but it seems like you want to drag a file from your local computer to your browser and make it play? or you want to drag a file from your local computer and set a upload script which then plays the song via a custom player? or am I not even close to what you want
I see! I don't know what your kmplayer is but it seems like you want to drag a file from your local computer to your browser and make it play? or you want to drag a file from your local computer and set a upload script which then plays the song via a custom player? or am I not even close to what you want
No i'll show the php script. So that it's gonna be easier to understand what i'm trying to do.
Then i wanna drag the link to my kmplayer. One interesting thing is that i can drag the file and play through Chrome's Ctrl+J to my kmplayer but not from my webpage.
Drag and drop is beyond the capabilities of a server side language regardless of if its on a local machine or not. The behaviour you are describing is a client functionality, not unlike the use of dragging an image onto your filesystem from a browser.
There is nothing you can do to force a drag and drop functionality using a server side language.