php
What to do when your server is sending spam (from malicious scripts)
Wrapper for php mail() to detect source script
Just found this link very helpful in order to find out which scripts on my server are sending spam. (Don't forget the -t argument when calling sendmail)
http://www.howtoforge.com/how-to-log-emails-sent-with-phps-mail-function...
Deleting mails in queue
batch processing images with php5 and imagemagick (convert)
Great thing.
$target = 'target_images/';
foreach(scandir($source) as $key => $value) {
if($key > 1) {
$sourcename = $source . $value;
$targetname = $target . substr($value, 0, -4) . '_sm';
$com = "/usr/bin/convert \"$sourcename\" -resize 1500x1500 -quality 90 \"$targetname" . ".jpg\"";
exec($com, $out, $return);
//Workaround for strange convert-behaviour:
//exec("rm \"$targetname\"" . "-1.jpg");
//exec("mv \"$targetname\"" . "-0.jpg \"$targetname\"" . ".jpg");
}
}
ioncube und zend-optimizer (plesk)
Auf unserem neuen Root-Server (plesk) musste der Zend-Optimizer installiert werden.
Gesagt getan, nach sauberem Durchlauf des Installers sollte ja alles ok sein.
Doch die Praxis belehrte mich einmal mehr eines Besseren:
Nach apache-Restart kam auf Port 80 keine Antwort. Der apache-error-log verriet:
PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0
So wie ich das Problem verstehe, stört sich der ionCube Loader daran, dass er nicht als erstes aufgerufen wird.
Ich versuch mal was:

Neueste Kommentare
vor 6 Tage 14 Stunden
vor 6 Tage 19 Stunden
vor 6 Tage 19 Stunden
vor 6 Tage 19 Stunden
vor 6 Tage 19 Stunden
vor 6 Tage 19 Stunden
vor 6 Tage 19 Stunden
vor 6 Tage 19 Stunden
vor 6 Tage 19 Stunden
vor 30 Wochen 4 Tage