Friends help pls

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 12345xmen
    replied
    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 !

    Leave a comment:


  • brand
    replied
    Originally posted by icedroplet1987 View Post
    ok thnx.. i am sending lines.. list.php from line 3213 to line 3245




    echo "<p><small>";
    $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<br/>$item[1] - Download</a>";
    $downloads = "Downloads: <b>$item[4]</b>";
    $dateadded = date("d/m/y", $item[5]);
    $dateadded1 = "Date Added: <b>$dateadded</b>";

    if(candelvl($uid, $item[0]))
    {
    $delnk = "<a href=\"121genproc121.php?action=delvlt&amp;sid=$si d&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 <br/>$byusr $delnk<br/>$dateadded1<br/>$downloads<br/><br/>";

    }






    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

    Leave a comment:


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




    echo "<p><small>";
    $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<br/>$item[1] - Download</a>";
    $downloads = "Downloads: <b>$item[4]</b>";
    $dateadded = date("d/m/y", $item[5]);
    $dateadded1 = "Date Added: <b>$dateadded</b>";

    if(candelvl($uid, $item[0]))
    {
    $delnk = "<a href=\"121genproc121.php?action=delvlt&amp;sid=$si d&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 <br/>$byusr $delnk<br/>$dateadded1<br/>$downloads<br/><br/>";

    }






    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.

    Leave a comment:


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

    Leave a comment:


  • icedroplet1987
    started a topic Friends help pls

    Friends help pls

    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
    Last edited by icedroplet1987; 06.10.09, 06:07. Reason: missed quote
Working...
X