I encounter the following error.
Warning: getimagesize(We bRoot/common/images/profile/) [function.getima gesize]: failed to open stream: Permission denied in C:\Data\PHPSite s\kamwo\indextm p-new.php on line 296
but it's working fine on my another php script.
php code:
[code=php]
$path = "WebRoot/common/images/profile/";
$file = $row1['imgdata'];
$width;
$height;
list($width, $height, $type, $attr) = getimagesize($p ath.$file);
if ($width > 102 || $height > 76){
if($width > $height){
$percentage = 102/$width;
}
else{
$percentage = 76/$height;
}
$width = $width*$percent age;
$height = $height*$percen tage;
}[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
Warning: getimagesize(We bRoot/common/images/profile/) [function.getima gesize]: failed to open stream: Permission denied in C:\Data\PHPSite s\kamwo\indextm p-new.php on line 296
but it's working fine on my another php script.
php code:
[code=php]
$path = "WebRoot/common/images/profile/";
$file = $row1['imgdata'];
$width;
$height;
list($width, $height, $type, $attr) = getimagesize($p ath.$file);
if ($width > 102 || $height > 76){
if($width > $height){
$percentage = 102/$width;
}
else{
$percentage = 76/$height;
}
$width = $width*$percent age;
$height = $height*$percen tage;
}[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
Comment