Re: I'm lost: text file upload
| From: | Jason Wong | Date: | Thu, 06 Mar 2003 07:13:23 +0000 |
| Subject: | Re: I'm lost: text file upload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138426@lists.php.net to get a copy of this message | ||
On Thursday 06 March 2003 14:33, John Taylor-Johnston wrote:
> http://www.php.net/manual/en/function.move-uploaded-file.php
>
> http://www.php.net/manual/en/features.file-upload.common-pitfalls.php
> http://www.php.net/manual/en/features.file-upload.php
> Indeed:
> http://ca.google.yahoo.com/bin/query_ca?p=php.net+upload+file
> and
> http://marc.theaimsgroup.com/?l=php-general
> I'm looking for a couple of lines of code so I can upload the contents of a
> *.txt into a buffer
You can't upload to a 'buffer', it has to be a file. Example in manual on how
to upload a file.
> and declare it as a string so I can spit it back in a
> <textarea>. I don't want to necessarily upload a text file, only load it
> into a buffer.
Once you've uploaded into a file, *then* you can read it into a $var and spit
it into a <textarea>.
> > ------------------------------------------
> > Search the list archives before you post
> > http://marc.theaimsgroup.com/?l=php-general
> > ------------------------------------------
>
> Charming isn't he?
Not sure whether to take it as a compliment or a sarcastic comment, BUT if
everybody did that then the amount of noise in this list would drop
dramatically.
If you have a problem then the chances are that others have already
encountered and resolved the same problem and searching the archives is the
best way to find out.
Also the user comments in the online manual are another valuable resource.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
What garlic is to food, insanity is to art.
*/