ervains Posted November 27, 2006 Report Share Posted November 27, 2006 Kad mēģinu bildi ielikt man izmet shito!! Fatal error: Call to undefined function imagecreatefromgif() in C:\wamp\www\includes\photo_functions_include.php on line 18 un te kods: <?php $imagetypes = array( ".bmp", ".gif", ".iff", ".jpg", ".JPEG", ".png", ".psd", ".tiff", ".wbmp" ); function attach_exists($file) { $dir = FORUM."attachments/"; $i = 1; $file_name = substr($file, 0, strrpos($file, ".")); $file_ext = strrchr($file,"."); while (file_exists($dir.$file)) { $file = $file_name."_".$i.$file_ext; $i++; } return $file; } if (isset($getfile)) { if (!isNum($getfile)) $getfile = 0; require_once INCLUDES."class.httpdownload.php"; $result = dbquery("SELECT * FROM ".$db_prefix."forum_attachments WHERE post_id='$getfile'"); if (dbrows($result)) { ob_end_clean(); $data = dbarray($result); $object = new httpdownload; $object->set_byfile(FORUM."attachments/".$data['attach_name']); $object->use_resume = true; $object->download(); } exit; } ?> Link to comment Share on other sites More sharing options...
bubu Posted November 27, 2006 Report Share Posted November 27, 2006 gd bibliotēka nav pieslēgta. Skaties php.ini failā. Link to comment Share on other sites More sharing options...
ervains Posted November 27, 2006 Author Report Share Posted November 27, 2006 (edited) Man nav taada php.ini faila.. tad kur wle var skatiities? Edited November 27, 2006 by ervains Link to comment Share on other sites More sharing options...
bubu Posted November 27, 2006 Report Share Posted November 27, 2006 Tad uzinstalē normālā veidā php, un būs tev php.ini fails. Vai arī lasi sava all-in-one maģiskā server-brīnuma dokumentāciju, kā šim piedabūt php paplašinājumus klāt. Link to comment Share on other sites More sharing options...
blackhalt Posted November 27, 2006 Report Share Posted November 27, 2006 phpinfo(); parasti rāda konfigurācijas faila atrašanās vietu Configuration File (php.ini) Path Link to comment Share on other sites More sharing options...
andrisp Posted November 28, 2006 Report Share Posted November 28, 2006 Vai arī izmanto iebūvēto Windows Searchu. PS. http://en.wikipedia.org/wiki/Indent_style Link to comment Share on other sites More sharing options...
ervains Posted November 28, 2006 Author Report Share Posted November 28, 2006 Aizmirsu pateikt es lietoju PHP-Fusion bet kautko no PHP ar maaku Link to comment Share on other sites More sharing options...
andrisp Posted November 28, 2006 Report Share Posted November 28, 2006 (edited) PHP-Fusion taču ir vienkārši php skripti. Tas neko nemaina. Meklē php.ini failu. Edited November 28, 2006 by andrisp Link to comment Share on other sites More sharing options...
ervains Posted November 28, 2006 Author Report Share Posted November 28, 2006 (edited) nu jaa atradu PHP.ini kas man tur jaadara> Edited November 28, 2006 by ervains Link to comment Share on other sites More sharing options...
andrisp Posted November 28, 2006 Report Share Posted November 28, 2006 (edited) Sameklē Extensions sadaļu un tur atkomentē (noņem no rindas sākuma ; simbolu) gd bibliotēku. Rezultātā tam vajadzētu izskatīties aptuveni tā: extension=php_gd2.dll Edited November 28, 2006 by andrisp Link to comment Share on other sites More sharing options...
ervains Posted November 29, 2006 Author Report Share Posted November 29, 2006 izdariju takat jaaskatas vai ir vai nav nekas nemainaas Link to comment Share on other sites More sharing options...
Val Posted November 29, 2006 Report Share Posted November 29, 2006 apache restartē Link to comment Share on other sites More sharing options...
Stopp Posted November 29, 2006 Report Share Posted November 29, 2006 Un pārbaudi, vai tev ir GD ekstensijas fails. Ja nav, tad http://lv.php.net/downloads.php un ņem zip package, tur zem extensions direktorijas ir tie dll faili. Link to comment Share on other sites More sharing options...
ervains Posted December 4, 2006 Author Report Share Posted December 4, 2006 kursh no tiem visiem tas fails ir? Link to comment Share on other sites More sharing options...
andrisp Posted December 4, 2006 Report Share Posted December 4, 2006 kāds kur ir 'gd' nosaukumā ? Link to comment Share on other sites More sharing options...
Recommended Posts