03-16-2009, 05:20 PM
|
#13 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Hello, I am having an issue with this script. I have not changed the code at all. I simply uploaded it and I got a parsing error here:
Parse error: parse error in /usr/local/apache/upload.html on line 17
I have my apache parsing HTML as PHP so I don't think that is the issue since the rest of my site works with HTML extension.
Just to make sure I renamed it back to .php and still got the error.
This is line #17:
Code:
/* Ensure the extension we're upload is allowed. */
if (!in_array($szExtension, $aAllowedExtensions))
{
throw new Exception('Extension "' . $szExtension . '" has been disallowed.');
}
It seems to be this line exactly:
throw new Exception('Extension "' . $szExtension . '" has been disallowed.');
Any idea's?
|
|
|
|