dwonload section error help me ?

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

    dwonload section error help me ?

    hi friends in my dwnload section when i open pics section i get this error

    Warning: getimagesize(http://images.businessweek.com/ss/06...urger-king.jpg) [function.getimagesize]: failed to open stream: Permission denied in /home/www/mysite.info/lists.php on line 3221

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

    i got error only this pics section tel me where is problam


    line no 3221 in list.php is bold

    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=\"*\"/>"



    line no 592 in core.php is bold

    //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);


    nw tel me friends wht error in this ???? plz

    #2
    try chmod to 777 or set permission to 777
    LDSWAPWORLD sigpic
    site closed.
    im busy with other things in life like facebook , send me PM so i can add you
    www.pinoySG.com

    don't ask for help if you're not even helping yourself!
    i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.


    Comment


      #3
      nothing happen when i chnage chmode 777


      same error help me plzzzzzzzzz

      Comment


        #4


        i dont think ur getimagesize works on image hosted on another server(i am not sure about it for that image hosted on server need url_allow or something like this dont remember exactly to be turn on)

        Comment


          #5
          wht i do for this bro ??????????

          Comment


            #6
            just use php thumb ffs lol
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment


              #7
              What is php thumb ffs

              Comment


                #8
                try this in core.php
                Code:
                function  getimagesize($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\"";
                
                }
                   function candelgal($uid, $item)
                {
                  $candoit = mysql_fetch_array(mysql_query("SELECT  uid FROM ibwf_gallery3 WHERE id='".$item."'"));
                  if($uid==$candoit[0]||ismod($uid))
                  {
                    return true;
                  }
                  return false;
                }

                Comment


                  #9
                  this is alos not wrk same error i get rider ?

                  Comment

                  Working...
                  X