You are here: Re: using windows recycle bin « PHP Programming Language « IT news, forums, messages
Re: using windows recycle bin

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация