[eluser]Phil Sturgeon[/eluser]
Two better options for people in the future, you can use unlink with a relative path from your webroot, for example:
Code:
unlink("./project/images/myimage.jpg");
That will be alot more portable. Or you can use FTP if you dont want to have lots of writeable directories on your site. I generally will only have ONE temp folder that all files are sent to, then connect to my own server using FTP and move them to a destination folder.