Reply to Re: <img width > in apache

Your name:

Reply:


Posted by Joseph Melnick on 06/26/05 18:44

Mr. Lisiecki Wrote:

"Zbigniew Lisiecki" <zbyszek@evot.org> wrote in message
news:d9ljdf$r1t$1@nemesis.news.tpi.pl...
> Joseph Melnick wrote:
>> There is a great example on php.net
>> http://ca3.php.net/manual/en/function.imagecreatefromjpeg.php
>
> Hi Joseph,
> great, this is what i was looking for.
> yet another more question:
>
> Joseph Melnick wrote:
>>>> This type of php script will often require greater than 30 seconds to
>>>> run therefore you will have to change the default timeout setting at
>>>> the
>>>> start of your resizer script.
>
> there are so many time variables. which one do you use ?
> max_execution_time = 300 in /etc/php.ini

This is the number of seconds that your script can run before it times out.

> won't help a lot - my script returns after aprox 5 sec. and not 5 min.
> smaller maps (up to 1MB) are ok, but for bigger one (i need up to 5MB)
Maybe you need to allocate more to your script From PHP.INI.

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
You will need to update these values:

max_execution_time = 300 ; Maximum execution time of each script, in
seconds
; could be set to 0
max_input_time = 60 ; Maximum amount of time each script may spend parsing
request data
; could be set to 0
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
; double it to 16M since you need at least twice the memory of your largest
image for buffering and manipulation.


> @imagecreatefromjpeg doesn't return. it might be nonlinear.
> btw. what is this @ standing for ?

@ means surpress warnings generated when calling this function.

It is a good idea when debugging a script to remove these as functions will
happily be quiet and not warn you that something is not being called
properly, or working properly.

>
> z
> --
> http://zbyszek.evot.org


Joseph Melnick
JM Web Consultants
Toronto, Ontario, Canada
http://www.jphp.com/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация