Reply to Re: Permissions Problem

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация