| 
 Posted by Areric on 05/04/06 02:57 
Ok so i figured something out... APparently its a size issue. I can 
upload any image with a size <= 350 KB but when i hit 351 it fails... 
the weird thing is when it fails in the script is completley 
arbitrary... it will ALWAYS read from the file but if i try and store 
the info into a variable it blows up. Its like php vars have an 
arbitrary hard limit of 350k size. 
 
By which i mean this outputs the string content of the file 
echo file_get_contents($filename); 
 
but this sequence of events outputs nothing 
$fp = fopen($filename, 'rb'); 
$this->SetImageContent(file_get_contents($filename)); 
echo $this->GetImageContent(); 
$this->SetImageSize($filename); 
 
Where SetImageContent and GetImageContent are the following 
function GetImageContent() 
   { 
     return $this->mImageContent; 
   } 
   function SetImageContent($value) 
   { 
     $this->mImageContent = $value; 
   } 
 
and mImageContent is just declared as a normal variable of the class.
 
  
Navigation:
[Reply to this message] 
 |