Posted by kicken on 06/14/05 04:12
Chuck Anderson wrote:
> I know this is more of a Windows question, but I've Googled this and can
> not find an answer.
>
> Is there a PHP interface to the Windows recycle bin?
>
> I want to put files there instead of deleting them.
>
> Moving and deleting is not the same. For one, the recycle bin has path
> information.
>
I don't think PHP has a way to do it. You need to get into high-level
windows-specific functions to put a file in the recycle bin. You might
be able to pull it of using the win32 api extension for PHP. I have no
way to test any code there since I'm not running a windows operating
system though. Google for the SHFileOperation C function in the windows
API. You should get some C or C++ examples, which you can probably get
converted to PHP if the win32 api extension works.
Navigation:
[Reply to this message]
|