|
Posted by Rik on 02/07/07 20:23
Jerim79 <mylek@hotmail.com> wrote:
> I don't know how to make this any clearer. I never ever ever ever ever
> want the PHP code to create any type of cookie, ever. I just want it
> to read the cookie, which I will create manually and place it in a
> directory where the form can access it. Just as in any other language,
> you can open a file outside the program and read its contents. That is
> all I am trying to accomplish here. Think of a C++ program that opens
> a file name text.txt. The program doesn't have to create the file
> first to open it and read it, the file just simply has to exist at the
> specified location.
Well, you've got the thinking still wrong here.
1. Unless accessable by normal network connection, PHP ('the form') cannot
under any circumstances access or read the file-system of the client. 't
Would be the moment I dump an OS if websrever could view my files like
that. PHP is not aware of any other filesystem then it's own (and possible
network shares).
2. C++ programs do run local (most of the time), so they have access to
the file system.
3. Normally, the browser is the only application communicating with the
server, and can only do so with an HTTP-request. This does not allow the
reading of files of the client.
Then again, your solution to the problem seems cumbersome. Why go through
all that trouble creating a custom made local cookie manually? Just let it
be set in an admin interface you'll only have to access once when the
computer is moved. Or if everything is within the local network, and ip's
are static, store which ip should print where, and change that when you're
redecorating. All infintely simpler.
--
Rik Wasmus
Navigation:
[Reply to this message]
|