Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4B141475AFA for ; Tue, 12 Nov 2002 04:48:25 -0500 (EST) Received: from relay.freestart.hu (smtp.freestart.hu [213.197.64.6]) by postgresql.org (Postfix) with ESMTP id 22078475A09 for ; Tue, 12 Nov 2002 04:48:24 -0500 (EST) Received: from line-73-207.dial.freestart.hu ([213.197.73.207] helo=there) by freestart.hu with smtp (Freestart relay 1 (FS-Lin)) id 18BXbd-0003Lp-00; Tue, 12 Nov 2002 10:45:14 +0100 Content-Type: text/plain; charset="iso-8859-2" From: "Papp Gyozo" Reply-To: pgerzson@freestart.hu To: Chris Smith , "Zhidian Du" , pgsql-php@postgresql.org Subject: Re: Are these steps correct and standard way to upload Date: Tue, 12 Nov 2002 00:38:56 +0100 X-Mailer: KMail [version 1.3.1] References: <5.1.0.14.0.20021108154207.03192b70@cooee.squiz.net> In-Reply-To: <5.1.0.14.0.20021108154207.03192b70@cooee.squiz.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: X-Scanner: exiscan by Freestart X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/52 X-Sequence-Number: 1634 2002. november 8. 05:45 dátummal Chris Smith ezt írta: | Hi, | | >I check the posts about uploading images from browser. No one give | > me a whole procedure how to do it. My friend told me I can upload | > binary/image file using following steps: | > | > exec("cp $pic $File"); | | Use the move_uploaded_image function in PHP. Safer and easier. The proper name of the function mentioned here is move_uploaded_file(). See: http://php.net/move_uploaded_file Snippet from the PHP Manual on how to writing BLOBs into PostgreSQL databases: -- Papp, Győző - pgerzson@freestart.hu