Re: uploading problems...please help

From: Date: Sun, 25 Aug 2002 13:37:03 +0000
Subject: Re: uploading problems...please help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-114049@lists.php.net to get a copy of this message
On Sunday 25 August 2002 05:53, Brian & Shannon Windsor wrote: > I'm trying to upload files from my PC to my website. The code is a little > nuts, but it's all I got to work locally, butonce I take the code to the > web I get this message. Can anyone tell me what I'm doing wrong? > > I'm trying to upload a file, strip all the information so as to just use > the name of the file to store in the database. I'm using explode and > array_pop for this, but I'm sure there's a better way. The problem seems > to be in writing the file to the web server. I changed the permissions on > the directories, so I don't think that's the problem. Please help. Why is it that everyone likes to write their own upload routine? There is a perfectly good example in the manual that (a) works, (b) shows how it _should_ be done. Try using that as a starting point and adapt it to your particular situation. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Many people are desperately looking for some wise advice which will recommend that they do what they want to do. */

« previous php.general (#114049) next »