PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Can you help me with this? From where is generated this error (having in mind that the code is okay and it worked nicely on my localhost server and on another remote server).
Warning: filesize() [function.filesize]: Stat failed for (errno=2 - No such file or directory) in /usr/home/admin/sites/my/_admin/do_upload.php on line 4
Warning: fread(): supplied argument is not a valid stream resource in /usr/home/admin/sites/my/_admin/do_upload.php on line 4
bogdani wrote:Twigletmac -> I remind you that the script is 100% okay on other 2 servers, but on this FreeBSD hosted server it gives me this error,..
Doesn't make a difference, what if there are different configurations and/or versions of PHP on each server? You really should check what is in $form_data2 - the error message doesn't seem to give a file name. Unless you purposefully removed that then it's kinda suspicious.
Obviously this will need reformatting to fit the way you would like it, but its a start. If you don't know what arrays are I suggest you do some reading.