Friends help pls

Started on the old forum in October 2009 · view the original in the archive · old links redirect here

4 replies · 395 views · started 17 years ago · 1 min read

4 participants
icedroplet1987 Senior · 258 posts #1

hello all.. i am getting this error instead of thumbnail.. i am using arawap script.. it use url upload.. but whenever i am uploading any pic.. it doesnt show thmbnail n shows this error.. how to short it out..

Warning: getimagesize(http://www.cssnz.org/flower.jpg) [function.getimagesize]: failed to open stream: Permission denied in /home/www/mysite.com/lists.php on line 3220

Warning: Division by zero in /home/www/mysite.com/core.php on line 592

flower - Download Added By: ramiz46 Date Added: 05/10/09 Downloads: 0

Mysterio Lead · 630 posts #2

Dude, see the lines 3220 and 592. If you can't find the error, post lines here...

mysterio.al - programming is a functional art

icedroplet1987 Senior · 258 posts #3

ok thnx.. i am sending lines.. list.php from line 3213 to line 3245

echo "

"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $ext = getext($item[2]); $mysock = getimagesize("$item[2]"); $imagesizeWH = imageResize($mysock[0], $mysock[1], 150); $ime = "<img src="$item[2]" $imagesizeWH alt="*"/>"; $lnk = "<a href="121download121.php?id=$item[0]">$ime $item[1] - Download</a>"; $downloads = "Downloads: $item[4]"; $dateadded = date("d/m/y", $item[5]); $dateadded1 = "Date Added: $dateadded";

  if(candelvl($uid, $item[0]))
  {
    $delnk = "<a href=\"121genproc121.php?action=delvlt&amp;sid=$sid&amp;vid=$item[0]\">[x]</a>";
  }else{
    $delnk = "";
  }
  if($who!="")
  {
    $byusr="";
  }else{
    $unick = getnick_uid($item[3]);
    $ulnk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$item[3]\">$unick</a>";
    $byusr = "Added By: $ulnk";
  }
  echo "$lnk 

$byusr $delnk $dateadded1 $downloads

";

}

core.php from line 584 to 604

//////////////////////////////////////RESIZE IMAGE function imageResize($width, $height, $target) {

//takes the larger size of the width and height and applies the //formula accordingly...this is so this script will work //dynamically with any size image

$percentage = ($target / $width);

//gets the new value and applies the percentage, then rounds the value $width = round($width * $percentage); $height = round($height * $percentage);

//returns the new sizes in html image tag format...this is so you //can plug this function inside an image tag and just get the

return "width="$width" height="$height"";

}

pls give solution.:(

brand Senior · 391 posts #4

icedroplet1987 wrote: ok thnx.. i am sending lines.. list.php from line 3213 to line 3245

echo "

"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $ext = getext($item[2]); $mysock = getimagesize("$item[2]"); $imagesizeWH = imageResize($mysock[0], $mysock[1], 150); $ime = "<img src="$item[2]" $imagesizeWH alt="*"/>"; $lnk = "<a href="121download121.php?id=$item[0]">$ime $item[1] - Download</a>"; $downloads = "Downloads: $item[4]"; $dateadded = date("d/m/y", $item[5]); $dateadded1 = "Date Added: $dateadded";

  if(candelvl($uid, $item[0]))
  {
    $delnk = "<a href=\"121genproc121.php?action=delvlt&amp;sid=$sid&amp;vid=$item[0]\">[x]</a>";
  }else{
    $delnk = "";
  }
  if($who!="")
  {
    $byusr="";
  }else{
    $unick = getnick_uid($item[3]);
    $ulnk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$item[3]\">$unick</a>";
    $byusr = "Added By: $ulnk";
  }
  echo "$lnk 

$byusr $delnk $dateadded1 $downloads

";

}

core.php from line 584 to 604

//////////////////////////////////////RESIZE IMAGE function imageResize($width, $height, $target) {

//takes the larger size of the width and height and applies the //formula accordingly...this is so this script will work //dynamically with any size image

$percentage = ($target / $width);

//gets the new value and applies the percentage, then rounds the value $width = round($width * $percentage); $height = round($height * $percentage);

//returns the new sizes in html image tag format...this is so you //can plug this function inside an image tag and just get the

return "width="$width" height="$height"";

}

pls give solution.:(

have you turned the files uploaded and uploaded/files to 777 that might be the problem

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

12345xmen Developer · 239 posts #5

chmod is not problam problm is when i take url of ny image frm other site that giv this error but when we take ny image url frm own sit host thats show without error nd wrk perfectly

i dnt upload other site url nd nd its giv error in my pics section thats the problam.

nw tel how i use other image site url that show in also in my site !

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close