I need help with this Upload script.
I want too upload gif/moving pictures but with this script I can't.
I already searching on google how to make it work but I failed.
Well, I couldn't see what was wrong that could give you an error.
So I just copy-pasted your code, and without editing anything I ran the script.
Of course, I didn't have your $dir.
So I've just modified the $dir to my localhost path, and voila it works perfectly.
ergo just check if your path ($dir) is correct. Because the coding does actually work.
It's a little easy, but nicely done ;)
2 things:
Use 'elseif{}' instead of 'else{ if{} }'
And outline your code, ffs.
All 4 extensions work with the upload...
Even the .gif (which would be extremely bizar if ONLY the .gif doesn't upload on your server. Then you should check the php.ini)
-,- WhoooH!
So I just copy-pasted your code, and without editing anything I ran the script.
Of course, I didn't have your $dir.
So I've just modified the $dir to my localhost path, and voila it works perfectly.
ergo just check if your path ($dir) is correct. Because the coding does actually work.
It's a little easy, but nicely done ;)
2 things:
Use 'elseif{}' instead of 'else{ if{} }'
And outline your code, ffs.
Even the .gif (which would be extremely bizar if ONLY the .gif doesn't upload on your server. Then you should check the php.ini)
Good luck
But I think you didn't added your parent path, to the $dir?
$dir = 'gallery/NurdRage/';
EXAMPLE:
$dir = 'C:/gallery/NurdRage/'; (won't work if you have a server running that is NOT your pc (localhost), but I assume you know what I mean?)
But every extension works fine but gif not
And what do you mean with else and elseif? :Z
E; what i mean with gif pictures are pictures like this
btw: which version of php are you using?