Blogs

Backup all MySQL databases automagicly with the PHP admin script

Server administration software like Cpanel, Plesl, Webmin etc have already their backup solutions. But they are runned mostly once a week or max a day because of performance reasons. Let say we just want to backup all of our mysql-databases every 2 hours.

To do this:

  • Create a directory like /backup/mysql
  • Save code below under something like backup_mysql.php
  • Chmod it to 755
  • Run it manually or with cronjobs /root/scripts/backup_mysql.php
#!/usr/bin/php
<?php
// use this if your php.ini does not allow shell etc #!/usr/bin/php -n

Drupal Joomla im Vergleich

Das ist ein Vergleich der beliebtesten Content-Management-Systeme Drupal 6x und Joomla 1.5-Serie.

Drupal pro: kostenlos, professionelle Kodierung, Mehrsprachig, Multi-Webseiten, Performance, große Gemeinschaft, Flexibilität, Leistung, Rollen-basierten Benutzer-Zugang, flexible Inhalt-Typen, gute Taxonomie(Kategorisierung) System, SEO freundliche URLs, Multi-DB Unterstützung

Unpublished
n/a

Kennwort Sicherheit mit PHP und Regex Prüfen

Was ist ein sicheres Wahl für Ihr Kennwort? Ihre Geburtsdatum, beliebte Star, Schule.. ? Keine davon, weil alle ähnliche Kennwörter viel zu einfach zu knacken sind.

Mein prinzip für ein sicheres kennwort ist einfach: Wenn man danach sucht Google darf keine einzige Ergebniss liefern. Sie sollten trotzdem nicht danach suchen, ohne Änderungen zu machen.

Ein gutes Kennwort sollte kleine Buchstaben, große Buchstaben, Zahlen und Symbolen enthalten.

Hier lassen wir es mit PHP prüfen ob das eingegebene Text genug sicher ist. Das ist ein Beispiel für Anfänger:

<?php
Syndicate content

CafeWebmaster.com(CW) is a free online community for webdevelopers and beginners. Anybody can share their code, articles, tips, tutorials, code-examples or other webdesign related material on the site. Newbies can submit their questions and reply to existing questions. CW does not guarantee or warrant reliability of code, data and information published on the site. Use the site on your own risk. The site takes no responsibility of direct or indirect loss or any kind of harm to its users. The site also doesn't take responsibility of infected files or source code with any kind of infection or viruses, worms, spywares, malwares, trojan horses. CW reserves the right to edit, move, or delete any of content for any reason.