Re: [PHP] Form security

2001-05-24 Thread mheumann
Hi, you could use an additional parameter containing a checksum of the entire URL, that you check at the beginning. Of course, somebody with the right motivation could find out your checksum scheme (I would use a subset of the md5 function), but at least it won't be simple anymore. You could

Re: [PHP] fdf and pfd functions in PHP

2001-05-24 Thread mheumann
Hi, I think this is more complicated. You'll need to create the FDF file manually pertaining to the format specifications. You will have to use the data posted from the HTML form, but just writing them out to the file won't do the trick. I haven't done this with PHP yet, maybe the fdf functio

[PHP] PHP-Developers: imap_open fails on PHP4, ok on PHP3

2001-05-24 Thread mheumann
Hi, I'm afraid this is a rather tough one, as nobody has answered so far. I'm growing rather desperate about this issue that's been causing me several sleepless nights already. All I want is to be able to use IMAP to access POP3 mailboxes with PHP4 (4.0.5). I had no trouble compiling both imap

Re: [PHP] printing a php/html page to the browser

2001-05-23 Thread mheumann
Usually, it should be enough to rename the file extension to .phps and the browser should handle it correctly, if the web server (i.e. apache) is properly configured. Michael. > If I had a mixed html/php page, i.e. where some of the strings had html > in them, other than setting the header to b

Re: [PHP] Inserting the date into MySQL via PHP

2001-05-23 Thread mheumann
Hi, please forgive me if your typo concerns only your posting, but you didn't close your VALUES parenthesis. Then, the order of the data in the second parenthesis doesn't match that in the first one (which it has to). So the correct way to do it would be: $insert = mysql_query("insert into dbr

[PHP] Again: PHP4 and IMAP: Bug?

2001-05-23 Thread mheumann
Hi, I'm growing rather desperate about this issue that's been causing me several sleepless nights already. All I want is to be able to use IMAP to access POP3 mailboxes with PHP4 (4.0.5). I had no trouble compiling both imap and PHP4, and actually I also compiled PHP3 with the same IMAP librar

Re: [PHP] include!!!!!

2001-05-23 Thread mheumann
Hi, that sounds like your Web server doesn't interpret PHP at all. Are you sure you enabled it correctly? What platform are you working on? Greetings, Michael. > I'm new to php (having converted from the evil ASP) and i'm having some > trouble with includes > > this is what i'm doing... > > in

Re: [PHP] Date (Year) .. adding..

2001-05-23 Thread mheumann
Hi Jason, You might want to put the '+$x' outside the date(). $year = date("Y") + $x; Greetings, Michael. > I'm trying to figure out how to add to the year: > > for($x=0; $x<20; $x++) > { > $year = date("Y" + $x); > print($year . "\n"); > } > > I've tried several variations on the a