Reply to Re: Best way to get the contents of a local file in a server variable

Your name:

Reply:


Posted by C. (http://symcbean.blogspot.com/) on 10/30/07 12:59

On 29 Oct, 19:07, Fons <f...@fons.invalid> wrote:
> My script acts on a file (approx. 100k) offered by the user. Actually, it
> acts on a variable that should have the contents of that file in it. I
> could try to let users upload that file and then read that file into a
> variable, but before I figure out how to do that: is this unnecessary
> overhead? Is it possible to do it without creating a file on the server
> filesystem and do it completely within the PHP framework? What method
> would you recommend?

Explaining the problem better would be a good start.

You can't get a file from the client to the server without uploading
up (unless you use signed javascripts - try a different newsgroup for
more info). 100k is getting a bit large to keep in a PHP variable,
though it will work.

C.

[Back to original 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

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