had a tinker with file uploads the
other week, going be memory, I think once you upload the file you can
get info about it from $_FILES, or you could use getimagesize() if you
can pass it a url.
Chapter 18 of the PHP manual has details on $_FILES.
Cheers,
Keith
Living Under the Jackboot
Australia is merely an island of Antarctica, and of no further significance
Greater Wyrm wrote:
Hi all,
Long time lurker, 1st time poster
it been ages since I did the webiste I am having issues with
it has an image fileupload component to it and the file upload works
fine
but I rename the image to the database generated unique ID
It worked for ages, but then the ISP changed the PHP version.
so my question is this
can anyone point me to an example on how to extract the file extention
from the uploaded file so I can rename the file with the appropriate
extention?
I know about Google and some sites that help but so far they have not
been a great help, I must be losing my Googling skills
also this forum needs more traffic
Thanks guys (and Girls as appropriate)
GW.
_______________________________________________
PHPwestoz mailing list
PHPwestoz@lists.linux.org.au
http://lists.linux.org.au/listinfo/phpwestoz
|