Jump to content

Can't use function return value in write context


evanct

Recommended Posts

Confused about this, I keep getting:

"Fatal error: Can't use function return value in write context in C:\Apache2\htdocs\fileservice\common\process.php on line 195"

 

which refers to:

 

<?php
function resetPreview() {
	global $upload;
	$path='../'.$_GET['path'];
	$ext=substr(strrchr($path,'.'),1);
	$list($width,$height)=getimagesize($path); //this line//
	$img=$upload->imgCreate($ext,$path);
}
?>

 

what's really strange though is that that function shouldn't even be executing. there is only one place it is called and it's only if a certain GET value is set, which in this case it isn't. any ideas?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.