...actually, there's a bit more groundwork to be laid before the above sample login will work.
On your Windows machine (with PHP & your web server), you'll need to install the Oracle Net8 client software. This will allow your Windows machine to <i>see</i> the Oracle database (typically, this client installation will also include SQL*Plus and a few other utilities [like <b>tnsping</b>] as well as a configuration wizard for setting up the <b>tnsnames.ora</b> file). Once you've run the Windows client install/configuration and your Windows machine can <i>see</i> the Oracle database, then the above-mentioned sample PHP script should work for you.
The <b>Oracle 8<i>i</i> Client <small>for Microsoft Windows NT/2000</small></b> disk is usually included in all of the Oracle CD packs, regardless of which architecture your Oracle is installed on.
In our setup here, we have Oracle 8i running on a Sun Sparc, and our Apache/PHP installation is on a Linux machine. I had to obtain a copy of the Oracle 8i installation for Linux in order to get the client software for Linux.