Posted: Wed Aug 02, 2006 5:28 pm
also ich danke dir wirklich für deine mühe. Ich hoffe das Problem hilft anderen später auch mal weiter 
ich habe php 4.4.0 auf dem server
ich habe php 4.4.0 auf dem server
User and developer community
https://board.s9y.org/
ergibt:-rwxrwxrwx 1 root root 26564 Aug 1 17:58 /usr/local/bin/convert
Code: Select all
-rwxrwxrwx 1 root root 26564 Aug 1 17:58 /usr/local/bin/convert
Code: Select all
<?php
$dir = '/usr/local/bin';
if (function_exists('is_executable')) echo 'is_executable exists ';
if (function_exists('is_executable') && is_executable($dir . '/convert')) { echo 'File is executable'; } else { echo 'File is NOT executable '; }
if (is_file($dir . '/convert')) echo 'File IS_FILE ';
Code: Select all
is_executable exists File is NOT executable
Code: Select all
is_executable exists File is executable File IS_FILE
Antwort:> Konnte folgendes Programm nicht ausführen: "/usr/local/srv/binary/ -antialias -resize '130x130'
'/home/xxx/htdocs/uploads/test.JPG'
'/home/xxx/htdocs/uploads/test.serendipityThumb.JPG'", Fehlermeldung: ,
Rückgabewert: 127
>
> Und wenn ich (wie bei anderen Installationen gesehen) noch ein convert dranhänge, dann hilft das auch nicht:
>
> Konnte folgendes Programm nicht ausführen: "/usr/local/srv/binary/convert -antialias -resize '130x130'
'/home/xxx/htdocs/uploads/test.JPG'
'/home/xxx/htdocs/uploads/test.serendipityThumb.JPG'", Fehlermeldung: ,
Rückgabewert: 127
Benutzt Du die Parameter für v.5 oder 6? Diese sind in der Reihenfolge
unterschiedlich.
Es ging mir deshalb auch mehr um die Frage meines Hosters zur Version.> Und wenn ich (wie bei anderen Installationen gesehen) noch ein convert dranhänge, dann hilft das auch nicht:
Code: Select all
<?php
passthru('/usr/bin/whoami');
Code: Select all
<?php
passthru('/usr/bin/whoami');
passthru('/usr/local/srv/binary/convert -help');
?>Code: Select all
<?php
echo "system:<br>";
system("/usr/bin/whoami",$ausgabe1);
echo sprintf($ausgabe1);
system("/usr/local/srv/binary/convert -help",$ausgabe);
echo sprintf($ausgabe);
echo "passthru:<br>";
passthru('/usr/bin/whoami');
passthru('/usr/local/srv/binary/convert -help');
echo "exec:<br>";
$cmd1=escapeshellcmd('/usr/bin/whoami');
exec($cmd1, $output1, $result1);
echo sprintf($cmd1, $output1[0], $result1);
$cmd=escapeshellcmd('/usr/local/srv/binary/convert -help');
exec($cmd, $output, $result);
echo sprintf($cmd, $output[0], $result);
?>Code: Select all
system:
127
127
passthru:
exec:
/usr/bin/whoami/
usr/local/srv/binary/convert -help