Thread: Image Uploading
View Single Post
Old 03-16-2009, 05:20 PM   #13 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

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?
allworknoplay is offline  
Reply With Quote