Error Upload Photo Gallery

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

    #16
    Code:
    maxx.php
    is this...
    if like my post click:

    http://coding-talk.com/images/totall...ost_thanks.gif

    Comment


      #17
      Code:
      <?php
      $height= 150;
      $width= 150;
      // Content type
      header(&#39;Content-type: image/jpeg&#39;);
      if(!$filename)
      $filename="../images/nopic.jpg";
      // Get new dimensions
      list($width_orig, $height_orig) = getimagesize($filename);
      
      if ($width && ($width_orig < $height_orig)) {
         $width = ($height / $height_orig) * $width_orig;
      } else {
         $height = ($width / $width_orig) * $height_orig;
      }
      
      // Resample
      $image_p = imagecreatetruecolor($width, $height);
      $image = imagecreatefromjpeg($filename);
      imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
      
      // Output
      imagejpeg($image_p, null, 100);
      ImageDestroy ($image_p);
      ?>
      is this...[/b]

      Lolz this is absolutely fine i hope u have a folder named images to store pics lolz nothing else cud be error
      <span style="font-size:12pt;line-height:100%"><span style="color:#FF0000">ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt</span></span>

      Comment


        #18
        Lolz this is absolutely fine i hope u have a folder named images to store pics lolz nothing else cud be error[/b]
        but I upload correct the file...I set perm at 777 in usergallery folder but only view photo not work.....if I use photo uploaded with avatar at profile I view correct...

        but why this???
        if like my post click:

        http://coding-talk.com/images/totall...ost_thanks.gif

        Comment


          #19
          I have upload another max.php file and work :cool:
          if like my post click:

          http://coding-talk.com/images/totall...ost_thanks.gif

          Comment

          Working...
          X