Navigacija

Vartotojų tinkle

Prisijungusių svečių: 67
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,964
Naujausias narys: laleceylan50

Naujausi straipsniai

Paskutiniai nariai

Bruksnys 5 dienos
laleceylan50 2 savaitės
minimukas 2 savaitės
N-20 5 savaitės
Reikalas 5 savaitės
Rytis 6 savaitės
DjArtas 7 savaitės
WolfHammer 7 savaitės
Nostesi17 savaitės
Wisedocs18 savaitės
asdasdddz21 savaitės
Paslapties K...22 savaitės
Audrius_1725 savaitės
Simbijanas37 savaitės
Karinacraft38 savaitės
Žmogus41 savaitės
Darexs47 savaitės
Nepas48 savaitės
keistuole50 savaitės
Gizmis52 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 216.73.216.14
Naujienų: 529
Straipsnių: 235
Temų: 52,590
Postų: 522,550
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

minimukas
2026 Vas. 21 08:02:25
oi oi akinanti šypsen yra dar cia gyvu? akinanti šypsen

N-20
2026 Vas. 6 21:02:05
O mes dar gyvi šypsosi)

WolfHammer
2026 Sau. 25 01:01:35
drovus

Žmogus
2025 Geg. 31 10:05:18
Kas geresnio? šypsosi

Nepas
2025 Bal. 9 17:04:13
drovus

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
Photoalbum
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai

Autorius: Haked Peržiūrų: 634      Spausdinti temą
2008 Rugp. 10 16:08:56          1 žinutė iš 1
Spausdinti pranešimą
kai bandai foto patvirtinti ar įdėti meta
Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 2272 bytes) in /home/ufnersky/klases.asmeninis.com/includes/photo_functions_include.php on line 19 ka daryt?

va tas failas:
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../index.php"); exit; }

function createthumbnail($filetype, $origfile, $thumbfile, $new_w, $new_h) {
   
   global $settings;
   
   if ($filetype == 1) { $origimage = imagecreatefromgif($origfile); }
   elseif ($filetype == 2) { $origimage = imagecreatefromjpeg($origfile); }
   elseif ($filetype == 3) { $origimage = imagecreatefrompng($origfile); }
   
   $old_x = imagesx($origimage);
   $old_y = imagesy($origimage);
   
   if ($old_x > $new_w || $old_y > $new_h) {
      if ($old_x < $old_y) {
         $thumb_w = round(($old_x * $new_h) / $old_y);
         $thumb_h = $new_h;
      } elseif ($old_x > $old_y) {
         $thumb_w = $new_w;
         $thumb_h = round(($old_y * $new_w) / $old_x);
      } else {
         $thumb_w = $new_w;
         $thumb_h = $new_h;
      }
   } else {
      $thumb_w = $old_x;
      $thumb_h = $old_y;
   }
   
   if ($settings['thumb_compression'] == "gd1") {
      $thumbimage = imagecreate($thumb_w,$thumb_h);
      $result = imagecopyresized($thumbimage, $origimage, 0, 0, 0, 0, $thumb_w, $thumb_h, $old_x, $old_y);
   } else {
      $thumbimage = imagecreatetruecolor($thumb_w,$thumb_h);
      $result = imagecopyresampled($thumbimage, $origimage, 0, 0, 0, 0, $thumb_w, $thumb_h, $old_x, $old_y);
   }
   
   touch($thumbfile);

   if ($filetype == 1) { imagegif($thumbimage, $thumbfile); }
   elseif ($filetype == 2) { imagejpeg($thumbimage, $thumbfile); }
   elseif ($filetype == 3) { imagepng($thumbimage, $thumbfile); }
}

function image_exists($dir, $image) {
   $i = 1;
   $image_name = substr($image, 0, strrpos($image, "."));
   $image_ext = strrchr($image,".");
   while (file_exists($dir.$image)) {
      $image = $image_name."_".$i.$image_ext;
      $i++;
   }
   return $image;
}
?>




Koks yra tavo vardas?
Peršokti į forumą: