karmacriminal Posted May 4, 2003 Posted May 4, 2003 I have just implemented a PHP upload script on my site and having trouble getting it to work. can anyone look at the error I am getting and possibly tell me what I am doing wrong. go to the upload page .PAGE IS HERE and try uploading a gif image. Let me know if you need to see anything else Quote
KevinW Posted May 5, 2003 Posted May 5, 2003 Can you identify who's PHP upload script you are trying to implement and/or where you got it from? -kw Quote
karmacriminal Posted May 5, 2003 Author Posted May 5, 2003 Here is the Script and the website I got it from: WEBSITE the Name I think is "File-upload.php" The website will explain more Quote
Auz Posted May 5, 2003 Posted May 5, 2003 Check the chmod on the directory that you are moving the uploaded file too. I've seen similiar errors when php can not write to the path its trying to move or create a file in. Quote
karmacriminal Posted May 5, 2003 Author Posted May 5, 2003 It is set correctly to 777 Here is what I did find. In the directions it says to create a new directory "fileupload". It then states that I should put my Script and Upload page in this directory. I did that and it works fine however for somereason I am unable to link to it from my other pages. I guess becasue its in another directory. so I had to put my entire website in the "fileupload" directory. so..go to my website in this version: WEBSITE IN FILEUPLOAD FOLDER and you will see that the uplaod works just fine. What I want is for my website to be in the normal PUBLIC_HTML folder. but for some reason the upload script only works when in the fileupload folder. REMOVE the "fileupload" from the web PATH and try the upload script that way. Thats when you get the error. Before yuou ask, yes, I also have the Script placed in PUBLIC_HTML Quote
karmacriminal Posted May 6, 2003 Author Posted May 6, 2003 Can nayone help me takle this beasts?!? I have tried to figure thgis out but an at a loss. Quote
freddy Posted May 11, 2003 Posted May 11, 2003 I'm not getting an error ... picture was succesfully uploaded it says ... And only now I read that the problem is something else Basicly you just need to edit the script and change the directory's also you should know that php runs under user nobody and all your files and directories are owned by you and not nobody. could you maybe post the error you are getting, this might be more helpfull to solve your problem... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.