| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Expert | whats the problem?? can anyone tell me?? Warning: move_uploaded_file(/home/kaxking/public_html/userimages/): failed to open stream: Is a directory in /home/kadking/public_html/admin/graphics_images.php on line 42 Warning: move_uploaded_file(): Unable to move '/tmp/phpP18fzK' to '/home/kaxking/public_html/userimages/' in /home/kaxking/public_html/admin/graphics_images.php on line 42 Discover_miles.bmp did not upload!
__________________ |www.vb-skins.com|- Quality Premade Vbulletin skins for Your VB forum makeover |www.Banjir.com|-Free image hosting?[B]For Sale!|AlphaScripts|Money Generating Scripts FREE VB Skins |
| |
| | #2 (permalink) |
| Senior Member | looking at those errors the files are not uploading because your not specifiying the file to to upload to, your trying to turn a folder into a file say youve got the file color.gif and you want to upload to /home/account/www/images when you upload the file the contents of the file gets uploaded into a php tmp file to wherever and then you have to copy/move the uploaded file to a new folder and file name so you need to make a not of the filename in your script and then on your function you need to add the file name so say color.gif was in a vairable called $file you need to add onto the end of the path $file so for example /home/account/www/images/$file then it should copy the file into color.gif php doesnt actually copy the file it copys the contents of the file well thats how i understand it |
| |
| | #3 (permalink) | |
| NamePros Expert | i sort of understand most of it accept this. Quote:
and it gives the error message! no idea of PHP!
__________________ |www.vb-skins.com|- Quality Premade Vbulletin skins for Your VB forum makeover |www.Banjir.com|-Free image hosting?[B]For Sale!|AlphaScripts|Money Generating Scripts FREE VB Skins | |
| |
| | #4 (permalink) |
| Senior Member | basically when you upload a file it makes a note of the size file name and tmp name that its given, the script will then read the contents of the file (it doesnt actually copy the file) and then when its uploaded it places the contents into a tmp file when its uploaded the script will then make and empty file called the file name you uploaded it then writes the contents of the tmp file to the new empty file. so the empty file gets the contents of the file you just uploaded so it appears as an exact copy so with that script your not actually specifiying the file you want to write to its set as a directory. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |