Zum Inhalt springen

Forum

PHPWelt.net Blog - Ein weiteres tolles WordPress-Blog


fsockopen error 22 unable to connect / invalid argument

Wenn folgender Code:

<?php
$fp = fsockopen('localhost', 80, $errno, $errstr);
if (!$fp) {
  print("ERROR Number: ".$errno. '<br>Error String: '. $errstr);
} else {
  echo 'fsockopen() ok';
  fclose($fp);
}
?>

ausgibt:

Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:80 (Invalid argument) in /(…)/fsocktest.php on line 3
ERROR Number: 22
Error String: Invalid argument

dann muss in die /etc/network/interfaces.template folgendes:

auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
broadcast 127.255.255.255
up ip route replace 127.0.0.0/8 dev lo

danach reboot.


really static – wordpressplugin

If you got any problems or ideas with the “really static” plugin please post them at the comments! This WordPressblog actuell uses this Plugin :-)

Status what works (testet):

create/delete Comments

create new blog entrys


WP-Super Cache und Lighttpd

Da .htaccess Dateien unter Lighttpd nicht funktionieren, war bisher an die verwendung von wp-super cache nicht zu denken.

Hier stehts wie es geht: http://www.thedomz.com/index.php/2008/11/15/getting-wp-super-cache-to-work-with-lighttpd/


Googletrends: Kekse vs abnehmen

zu genial die grafik: http://google.com/trends?q=kekse%2C+abnehmen


Emailkonto testen

Wer testen will ob sein Emailkonto auch ordentlich senden und empfangen kann, schickt einfach eine email an echo@tu-berlin.de und erhält dann eine automatische “hat funktioniert” antwort.


Neuer weiterer Server …

… für den Counterservice, nach dem der neue alte > 50% (erweiterter) und 150% normaler Arbeitsspeicher dauerlast  stand :-( .


Wie muss das Impressum auf Webseiten aussehen?

viele Informationen wie das Impressum auf Webseiten aussehen muss, hier: http://www.law-blog.de/99/wie-muss-das-impressum-auf-webseiten-aussehen/


Google Smart Map – WordPress Plugin

Mehr Infos und Download: http://wordpress.org/extend/plugins/smart-map/
Howto
[googleMap]Width|Height|Zoom|control Type|show Type|Location info|Descripton[/googleMap]

Width: size in pixel
Heigth: size in pixel
Zoom: 0 = World …. 15 Street Zommlevel
control Type: 0 dont show the zoomcontroll, 1 show it
show Type: 1= show the buttons to change to the satelite,0=dont show it
Location info: your location info for example: Wall Street, New York
Descripton: your description of this point… for example: The New York Stock Exchange

Please use new version: here


WordPress 2.6.2 ist erschienen – Kritisches Update

Gestern wurde für die Blogsoftware WordPress eine Sicherheitsupdate herausgebracht. Das gefundene Sicherheitsleck gefährdet sind vor allem Blogs, welche eine offene Registrierung anbieten.

Durch Schwächen der Funktion mt_rand(), mit der das neue Passwort generiert wird, ist das eigentlich zufällig gesetzte Passwort voraussagbar.

Mehr via http://www.golem.de/0809/62286.html


ereg Funktion in Javascript

var Aussage = "Hallo mein Name ist Ed";
var Suche = Aussage.search(/ist.+/);
if (Suche != -1) alert("gefunden");