I coded it on my laptop which is a Windows ME machine but I don't understand why it works under windows but not under Linux.
The error message I get is:
Warning: Unable to open 'C:\\WINDOWS\\Desktop\\myphoto.jpg' for reading: No such file or directory
The line of code for the upload selector is just a browse input box:
<input type=file name=driverimage size=30>
and then:
Code: Select all
if (!$driverimage == "")
{
copy($driverimage, "$abpath/$imagename");
}