Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Skalowanie obrazka
Forum PHP.pl > Forum > Przedszkole
mariusz g
Witam exclamation.gif!

taki błąd mi wywala, moze to proste ale ja nie mam pojęcia.

Parse error: parse error, expecting `'('' in c:\php\easyphp1-8\www\index.php on line 26



  1. <?php
  2.  
  3. // Load autoloader functionality
  4. require_once 'Base/base.php';
  5. function __autoload( $className )
  6. {
  7. ezcBase::autoload( $className );
  8. }
  9.  
  10. // Define which handler to use for the image manipulation.
  11. $settings = new ezcImageConverterSettings(
  12. new ezcImageHandlerSettings( 'ImageMagick', 'ezcImageImagemagickHandler' ),
  13. )
  14. );
  15.  
  16. // Create the converter object.
  17. $converter = new ezcImageConverter( $settings );
  18.  
  19. $scaleFilters = array(
  20. new ezcImageFilter(
  21. 'scale',
  22. array( 'width' => 500,
  23.  'height'  => 350,
  24.  'direction' => ezcImageGeometryFilters::SCALE_DOWN
  25.  )
  26. )
  27. );
  28.  
  29. // Which MIME types the conversion may output
  30. $mimeTypes = array( 'image/jpeg' );
  31.  
  32. // Create the transformation inside the manager
  33. $converter->createTransformation( 'thumbnail', $scaleFilters, $mimeTypes );
  34.  
  35. // Transform an image.
  36. $converter->transform( 'thumbnail', "boathouse.jpg", "boathouse_tumbnail.jpg" );
  37. print( "<p><img src='boathouse_tumbnail.jpg' /></p>" );
  38. ?>
wipo
W 27 linii wstaw ;
Pozatym masz napisane to w komunikacie błędu
mariuszg
nie pomogło
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.