Re: How to display JPG files that are stored on the user's computer?
- From: Piotr <spam@xxxxxxxxxxxxxx>
- Date: Mon, 05 May 2008 09:46:37 +0200
PHPBABY3 wrote:
And I'll be able to invoke the functionality from PHP? The entire
application is written in PHP.
You don't seem to understand what is the difference between server and client side programing or what are the browser limitations. It's essential knowledge.
1. Your PHP written application runs of the *server*, in internet realm, that is *different machine* to client. Client machine *don't see* your PHP code, and even if it would see it, it *wouldn't understand* it.
All what client machine does for you, is requesting and accepting XML/HTML files and then displaying them. It also gets the resources that are linked in those files. Browsers can interpret some of those files.
2. For security reasons, it was set long time ago, that the browser *will not send* any user data (including memmory or file system) to the server. It will *not even access* such resources. Browser programmers put a lot of effort, to *block* any attempts to access file system or memory.
Granted, there where and probably still are some holes, but those are
marked as critical bugs and *fixed* fast.
As for the question alone,
if you embed the Java application in html, the browser can ask user about permission to access his file system, if the user agrees, then the Java should be able to do what you need. But you really *should* redirect such questions to *Java* related newsgroup.
best regards
Piotr N
.
- Follow-Ups:
- References:
- Prev by Date: Re: php 5 and mysql failure
- Next by Date: Re: image slicing script
- Previous by thread: Re: How to display JPG files that are stored on the user's computer?
- Next by thread: Re: How to display JPG files that are stored on the user's computer?
- Index(es):
Relevant Pages
|