Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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. :D :blink:

 

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 :blink: :blink:

Posted

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...