Kenneth Dalbjerg, IT Konsulent i århus

Pureftpd (Ubuntu / Debian)

Tuesday, March 23rd, 2010 Posted in Debian, Linux | No Comments »

Setting up Pure ftpd to run on certains port is very simple. Log on to you linux box and run this command: echo "60010 60030" > /etc/pure-ftpd/conf/PassivePortRange /etc/init.d/pure-ftpd restart or if you run mysql as a backend /etc/init.d/pure-ftpd-mysql restart Now you just need to forward port ...

Tweaking mySQL in Debian

Monday, September 1st, 2008 Posted in Computer, Linux | No Comments »

This guide is not complete to tweak you mySQL on Debian systems, because a good tweak is depending on what you want to use mySQL to. Key Buffer: The key buffer holds the indexes of tables in memory, and of cause a ...

mySQL kommandoer i PHP

Thursday, August 25th, 2005 Posted in Programmering | No Comments »

Lidt kommandoer til at arbejde med mySQl Koble sig til en mySQL server $mysql_server = "localhost"; $mysql_bruger = "bruger"; $mysql_password = "password"; $mysql_database = "database"; if (!mysql_connect("$mysql_server","$mysql_bruger","$mysql_password")) { echo("Kunne ikke oprette en forbindelse til MySQL."); exit; } if(!mysql_select_db("$mysql_database")) { echo("Kunne ikke vælge databasen: $database"); exit; } Hente data ud fra en mySQL $sql = mysql_query("SELECT ...