<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Verdana">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.<br>
<br>
Chapter 18 of the PHP manual has details on $_FILES.<br>
</font></font>
<pre class="moz-signature" cols="72">Cheers,
Keith
Living Under the Jackboot
Australia is merely an island of Antarctica, and of no further significance</pre>
<br>
<br>
Greater Wyrm wrote:
<blockquote cite="mid4211ABBC.90707@yahoo.com.au" type="cite">Hi all,
  <br>
Long time lurker, 1st time poster
  <br>
  <br>
it been ages since I did the webiste I am having issues with
  <br>
it has an image fileupload component to it and the file upload works
fine
  <br>
but I rename the image to the database generated unique ID
  <br>
  <br>
It worked for ages, but then the ISP changed the PHP version.
  <br>
  <br>
so my question is this
  <br>
  <br>
can anyone point me to&nbsp; an example on how to extract the file extention
from the uploaded file so I can rename the file with the appropriate
extention?
  <br>
  <br>
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
  <br>
also this forum needs more traffic
  <br>
  <br>
Thanks guys (and Girls as appropriate)
  <br>
GW.
  <br>
  <br>
  <br>
  <br>
_______________________________________________
  <br>
PHPwestoz mailing list
  <br>
<a class="moz-txt-link-abbreviated" href="mailto:PHPwestoz@lists.linux.org.au">PHPwestoz@lists.linux.org.au</a>
  <br>
<a class="moz-txt-link-freetext" href="http://lists.linux.org.au/listinfo/phpwestoz">http://lists.linux.org.au/listinfo/phpwestoz</a>
  <br>
  <br>
</blockquote>
</body>
</html>