You are here: Re: [PHP] Saving Files « PHP « IT news, forums, messages
Re: [PHP] Saving Files

Posted by Richard Lynch on 01/06/05 02:09

prthomp@uark.edu wrote:

> 3. Saves/downloads the file to that exact location as pulled from and
> replaces the old file

Ain't no way you're going to be allowed to decide where to save files on
*MY* computer!

That would be a MAJOR security hole...

Now let's look at ways you *COULD* do this.

First, you're looking at a DESKTOP application that can arbitrarily
read/open/write files on the user's desktop.

To keep it relevent, we'll then suggest you use PHP-GTK: http://gtk.php.net

So your user has to install your PHP-GTK application on their own computer.

Then, your GTK PHP application can read/write files on their computer
(assuming they have permission to do so in the first place) and you can
use the functions like http://php.net/file to "talk" to your web-server.

So it *could* be done, with the rather *HUGE* caveat that you have to get
users to install your PHP GTK application on their machine.

NOTE: There might be easier/faster ways to accomplish building a desktop
application, depending on your skills and background. But PHP-GTK is one
very good possible solution, which will also for sure have the web access
part of it pretty easy. Plus it will be portable to many OSes. And you
can compile it to make it look like a "real" application, as I understand
it -- though that might cost money for the compiler.

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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