Re: [PHP] protecting downloads with php

2002-05-12 Thread Peter H. Lemieux
It can be tricky to write download wrappers that work with all browsers. Some versions of Internet Explorer seem especially troublesome. I've found wrappers like these seem to work fairly well: initialization(); authorization($user,$pw); $info=get_file_info($filepointer); ### SEND HEADERS ###

Re: [PHP] php4 on RedHat 7.1

2001-04-27 Thread Peter H. Lemieux
Take a look at /var/log/httpd/error_log. Is there an entry for the very first time the server was run (before you installed PHP 4.04pl)? Does it list PHP/4.0 as installed? The initial entry in my error_log from the Wolverine beta of 7.1 shows: [Fri Apr 27 12:36:13 2001] [notice] Apache/1.3.14

Re: [PHP] Drop down list - persistant value

2005-04-13 Thread Peter H. Lemieux
I use a function to create select boxes: function make_select($fieldname,$options,$selected,$opt=) { # make a select box with option text $opt # $fieldname = name of html field # $options = associative array of select options # $selected = field key of selected item