The following new message has been posted on Phorm Support Forum at <http://www.phorm.com/support/>. *************************************************************************** MESSAGE: (#2664) Re: fileupload.php3 error <http://www.phorm.com/support/?rev=2664> AUTHOR: Holotech DATE: May 8, 2003 at 8:50 a.m. EST Reply To: (#2644) fileupload.php3 error Author: David Date: May 6, 2003 at 4:19 p.m. EST > I'm getting this message using Phorm 3.0 > (unregistered) can someone tell me what I can do to > fix this? I know that the file upload feature is > reserved for those who register but does that mean you > have to put up with this error? > Warning: stat failed for ./lib/fileupload.php3 > (errno=2 - No such file or directory) in > /usr/local/psa/home/vhosts/domain/httpdocs/phorm/phorm.php > on line 358 There's a handling and a brief explanation here: http://www.phorm.com/support/?read=2663 but I'll go into a little more detail. PHP has several reporting levels: Notice, Warning, Error, and several flavors of these. Notice-level messages are virtually worthless. From the PHP documentation: "Notices are not printed by default, and indicate that the script encountered something that could indicate an error, but could also happen in the normal course of running a script. For example, trying to access the value of a variable which has not been set, or calling stat() on a file that doesn't exist." Calling any file function except file_exists() on a file which doesn't exist, generates a "stat failed" Notice. On the particular line in question, Phorm has this: $ph_UpLoads = is_readable("$ph_root/lib/fileupload.php3"); which will tell me if the upload module exists and if it's readable. The "proper" way to do it, which would avoid the Notice, would be: if (file_exists("$ph_root/lib/fileupload.php3")) $ph_UpLoads = is_readable("$ph_root/lib/fileupload.php3"); but I think that's redundant and just plain anal-retentive. *************************************************************************** This is an automatically-generated notice. If you'd like to be removed from the mailing list, please visit Phorm Support Forum at <http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx If you wish to respond to this message, please post your response directly to the board. Thank you! ------------------------------------------------- You are receiving this message because you are subscribed to the Phorm mailing list. To send messages to the mailing list, simply send email to phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe from the list by sending email to phorm-request@xxxxxxxxxxxxx with 'unsubscribe' in the SUBJECT field.