A new version for VLC media player

vlc-win32

VLC media player – the cross-platform media player and streaming server

VLC media player is a highly portable multimedia player for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, …) as well as DVDs, VCDs, and various streaming protocols. It can also be used as a server to stream in unicast or multicast in IPv4 or IPv6 on a high-bandwidth network.

3.7 downloads per second | download yours

10 Tips That Every PHP Newbie Should Know

php

I wish I had known these 10 tips the day I started working with PHP. Instead of learning them through painstaking process, I could have been on my way to becoming a PHP programmer even sooner! This article is presented in two parts and is intended for folks who are new to PHP.

Tip 1: MySQL Connection Class

The majority of web applications I’ve worked with over the past year have used some variation of this connection class:
[sourcecode language=’sql’]
class DB {
function DB() {
$this->host = “localhost”; // your host
$this->db = “myDatabase”; // your database
$this->user = “root”; // your username
$this->pass = “mysql”; // your password

$this->link = mysql_connect($this->host, $this->user,
$this->pass);
mysql_select_db($this->db);
}
}

// calls it to action
$db = new $DB;[/sourcecode]

Simply edit the variables and include this in your files. This doesn’t require any knowledge or special understanding to use. Once you’ve added it to your repertoire, you won’t likely need to create a new connection class any time soon. Now you can get to work and quickly connect to your database without a lot of extra markup:
[sourcecode language=’sql’]
$result = mysql_query(“SELECT * FROM table ORDER BY id ASC LIMIT 0,10”);[/sourcecode]
Continue reading

Music industry takes on operators of eDonkey servers

On Friday the German music industry celebrated a partial victory in its fight against the illegal distribution of music on the Internet. A temporary injunction issued by the District Court (LG) in Hamburg and served to the operator of an eDonkey server had “ordered the said operator to take his computer off-line for as long as the range of music files offered for download via the server contains illegal files,” the German Chapter of the International Federation of the Phonographic Industry (IFPI) declared (File Number 308 O 273/07). The way of describing the case chosen by the Chapter is a highly abridged version of events, however. As a matter of fact, in the case dealt with by the court in Hamburg, the operator was only prohibited from distributing the songs contained on one album of one band.
Continue reading

htaccess Password Protection

You can protect a specific directory with the . htaccess file by doing the following:

1. Create a new file called . htpasswd in the same way as we created the . htaccess file above.

2. The . htpasswd file uses the following format for storing username and passwords:
username:password

There must be no spaces on the line before username, either side of the colon or after the password text. If you want several people to have access to the protected space, with each having a different login, you can add as many username/password lines as you wish making sure each one is on a separate line.
Continue reading