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 ite

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 ### he

Re: [PHP] GMT / TimeZone modifications

2002-04-11 Thread Peter H. Lemieux
Just had to solve this problem the other day. Here's a quick snippet to display the time in Great Britain while my server's located in Boston: This switches the timezone locale to GB, displays the local time there, then switches back to Eastern US. Peter - Original Message - From: "

Re: [PHP] mailing list using mail()

2002-04-10 Thread Peter H. Lemieux
> the combination of PHP and mysql and the ease of use of the mail() > function obviously leads me to believe that it *should* be a cinch to > use php to send customised messages to all my users , of whom I have > details in a mysql table by simply running a "select * from table" and > then using

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.1