das ist das script, was das bild verkleinert und dann ausliefert...
reduziert um ein wenig smarty und xajax...
[Mon Mar 06 12:40:27 2006] [notice] Child 3972: Acquired the start mutex.
[Mon Mar 06 12:40:27 2006] [notice] Child 3972: Starting 10 worker threads.
[Mon Mar 06 12:40:27 2006] [notice] Child 3972: Starting thread to listen on port 443.
[Mon Mar 06 12:40:27 2006] [notice] Child 3972: Starting thread to listen on port 80.
[Mon Mar 06 12:43:25 2006] [notice] Child 3904: Terminating 3 threads that failed to exit.
reduziert um ein wenig smarty und xajax...
wieso kann das nicht funktionieren?
- Code: Select all
<?php
//ob_start();
error_reporting(E_ALL);
$smarty = new smarty();
- Code: Select all
if(DB::isError($db)) {
die($db->getMessage());
}
$sql2 = 'SELECT name FROM *** WHERE ***='.$_GET['img_id'];
$tmp = $db->query($sql2);
if(DB::isError($tmp)) {
die($tmp->getMessage());
}
$tmp2 = $tmp->fetchrow();
$theFile = $tmp2[0];
$hash = md5($theFile);
$outfile = 'dir/dir/'.$hash.'.jpg';
- Code: Select all
echo ($retval);
if ($retval) {
[schnipp]
}
und ich mag nicht meinen kompletten source hier posten, schon alleine der pfade wegen.
wenn das script mehrfach gleichzeitig aufgerufen wird gibts halt die probleme, annsonsten tuts genau das was es soll.
#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall is used to deliver
# files. This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
#
#EnableMMAP off
EnableSendfile off
Users browsing this forum: No registered users and 23 guests