|
Posted by sandy on 04/28/07 04:00
I use recursive readdir as the engine for
a numerous file processing routines, including
generating thumbnails, using getimagesize
imagecreatetruecolor and imagejpeg, etc.
where each resize operation involves instantiating
a new resizer class instance.
.....but my (shared host) website is large, so I
run past max_execution_time if I try to make
all thumbnails at once, from the top of
my document_root. My virtual file system
includes a php.ini which I can edit, but
bumping max_execution-time (although the file saves)
seems to have no effect, and I do not have
permission to run /usr/sbin/apachectl restart
Perhaps the php.ini change
will start to work the next time the server reboots.
In the mean time, is there some way to fork a new process,
for instantiating the resizer?
I could try to use exec to run command line
php. But there must be a more elegant way
to do this. I'd use perl and imagemagick,
but my shared host server doesn't have the
right perl libs installed, and that's another
can of worms.
Navigation:
[Reply to this message]
|