This is a discussion on "[SOLVED] PHP File Upload" within the PHP Forum section. This forum, and the thread "[SOLVED] PHP File Upload are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] PHP File Upload
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] PHP File Upload
Hello everyone,
I have been following several threads about file uploading using php, but I can't figure out how to do it correctly. I have tried several tutorials and all of them end the same way: Error, no success Here is my form:
Quote:
A common error is that the directory is missing. But not in this case, I have created the directory "uploads" on my site... Any suggestions? Feel free throw anything at me since I understand PHP very well... Cheers
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
|
|
||||
|
Re: PHP File Upload
Have you changed the chmod of the directory you are uploading to?
It will need to be 0777. This can be done easily via Cpanel's file manager and other file managers. In Cpanel you must highlight the directory and select "change permissions".
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: PHP File Upload
I don't have a server with CPanel. Everything is done through FTP as it's a university server (the site is for a professor there).
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
||||
|
Re: PHP File Upload
Oh damnit, I can't remember the way to do it via FTP (or if there is one).
Let me have a google for a min.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: PHP File Upload
I'm not sure you can do it with FTP... I just meant that I have no direct control over the server. So, I can't change permissions...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
||||
|
Re: PHP File Upload
i use smart ftp, and all i do is highlight the folder/file then right click on the file or folder i want and the option is there ( maybe its something like that )
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Nov 26th, 2007 at 05:39. |
|
|||
|
Re: PHP File Upload
Nope, nothing there... I use a weird program: FileZilla
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
||||
|
Re: PHP File Upload
In FileZilla: right-click on the folder --> File attributes and set all the check boxes or set the numeric value to 777.
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
|||
|
Re: PHP File Upload
Is this the same as uploading a image to a folder, instead of in a database?? If so i have a some working script i could post you?
|
|
|||
|
Re: PHP File Upload
I'm not totally sure, but I think you'd have to give the full path to the image folder. Not just "/uploads". So I think
Blake. |
|
|||
|
Re: PHP File Upload
Thanks everyone, but c010depunkk's solution worked perfectly. The code now works since I changed the folder's permissions.
Thread Solved
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP+SQL+File Upload | joshlindem | PHP Forum | 5 | May 10th, 2008 16:48 |
| file upload | berry05 | Job Opportunities | 0 | Mar 19th, 2008 19:09 |
| [SOLVED] File Upload Possibly Blocked | longstand | PHP Forum | 2 | Jan 31st, 2008 23:20 |
| File Upload | magiccupcake | PHP Forum | 1 | Jan 22nd, 2007 05:10 |
| File upload | djme | PHP Forum | 4 | Jan 11th, 2006 18:25 |