RE: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Brinkman, Theodore
Don't forget that people are very good at coming up with easy to read displays that a computer will have trouble processing. I'll include a lightly sanitized (so I don't get in trouble at work) example below: - - - - - W d y f m S h 0 o s e

RE: [PHP] Problem with ?xml .... inside the PHP code, due to ?

2002-08-02 Thread Brinkman, Theodore
Turn off the short tag option in the PHP ini file, and always use '?php' as your php start tag. When short tags are enabled, PHP sees the '?' in '?xml', and assumes it is a start tag. - Theo -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Thursday,

RE: [PHP] == vs = should generate a warning or error -- was: Why won't this work?

2002-07-22 Thread Brinkman, Theodore
If you want to get a warning when you accidentally do an assignment instead of a comparison ( = instead of == ), get in the habbit of putting the constant/function FIRST when you're doing a comparison. For example, using 'while(mysql_fetch_row($result) = $row)' or 'if(5 = $x)' should give the

RE: [PHP] dumb

2002-07-10 Thread Brinkman, Theodore
Doesn't work for those of us who are on the digest. - Theo -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 4:59 PM To: Brendan P. Caulfield; PHP Subject: Re: [PHP] dumb Thank you brendan my point from the beginning. Outlook users

RE: [PHP] HTTPS vs. HTTP ?

2002-07-09 Thread Brinkman, Theodore
You know the retail establishment has invested alot of money, what about the underpaid waiter/checkout person they employ? What is that waiter doing with your credit card when he/she takes it from the table for processing? Is the checkout person have a photographic memory writing down

RE: [PHP] HTTPS vs. HTTP ? - the weakest link

2002-07-08 Thread Brinkman, Theodore
Think about it for a moment. E-commerce involving properly signed sites is, at the very least, more secure than handing your credit card to a waiter in a restauraunt. The waiter can walk off with your card, and come back 2 minutes later with your card. You'll never know if he copied down the

RE: [PHP] comment followed by ? fails to parse

2002-05-29 Thread Brinkman, Theodore
It really should ignore anything in any sort of comment. The whole point of a comment is that it provides the programmer with information and is ignored by the compiler/interpreter. If // is supposed to comment until the end of the line, then by god, it should comment until the end of the line,

RE: [PHP] some Javascript functions with PHP

2002-05-17 Thread Brinkman, Theodore
If you want to tailor the page to the screen size (generally a bad idea in the first place), you'd have to do that with client-side code. Otherwise, when the user resizes their window your 'tailored' content doesn't fit correctly anymore. Its generally a better idea to make sure your HTML looks

[PHP] RE: PHP 4.2.0 Release Announcement

2002-04-23 Thread Brinkman, Theodore
Does anybody know if they completed the handling of the 'echo shortcut' to work with all 3 opening tag styles? (As of 4.0.x, I seem to recall that '?=' and '%=' were equivalent to '? echo', and '% echo' respectively, but '?php=' wasn't equivalent to '?php echo'. I also seem to recall some

[PHP] $PHP_SELF question

2002-04-18 Thread Brinkman, Theodore
I've got an include file that provides the basic framework for every page on my site, and at the bottom of each page, I want to spit out when the page was last updated. I used $PHP_SELF inside the include file, and got the include file's path. Is there a variable equivalent to $PHP_SELF that

RE: [PHP] nl2br returns BR /? normality or a bug?

2002-04-08 Thread Brinkman, Theodore
For the record br/ (which would be the 'normal' xhtml style) is unrecognized (and therefor ignored) by Netscape 4.x. However, it recognizes and properly handles br /, which I'm sure is why it is output in that format. If anybody has seen br/ misbehave, try going back and testing with br /.

RE: [PHP] Test for one bit set?

2002-04-08 Thread Brinkman, Theodore
Try a bitwise and (I think the operator is '')... ?php $bitMask = 16; $value1 = 24; $value2 = 36; ?$value1 has bit 5 set? ?php if($bitMask $value1) { //should get here echo 'true\r\n'; } else { echo 'false\r\n'; } ?$value2 has bit 5 set? ?php if($bitMask $value1) {

RE: [PHP] Targetted redirection?

2002-03-15 Thread Brinkman, Theodore
OK, If I understand correctly, the following scenario would work? Given: My site is being brought up inside somebody else's (say about.com)frameset. [We'll call this page about.html] Given: I want my main page (index.html) to break out of the frames in the about.html page. Solution: My main

RE: [PHP] Crashing a webserver

2002-02-20 Thread Brinkman, Theodore
Pull the plug? :) -Original Message- From: Chris Lott [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 1:28 PM To: Ruben Vermeersch Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Crashing a webserver I have got the task to down our webserver, to see how stable she is, and how

[PHP] RE: PHP vs. ASP

2002-01-10 Thread Brinkman, Theodore
Typically, when people talk about 'native' database access, they're referring to accessing the database using the database's native interface, not that the language directly supports the database. (i.e.: not limiting everything to the lowest common denominator). The advantage you get from

RE: [PHP] Most secure way to send a password

2001-12-26 Thread Brinkman, Theodore
The in-between hacker who catches the encoded password would gain the same access if the JavaScript hashing function wasn't there. However the server expects the password, he'd have gotten that form of it by sniffing that set of packets. On the other hand, he wouldn't have your plain-text

[PHP] Good, secure, easy to configure/use PHP website management tool?

2001-12-07 Thread Brinkman, Theodore
I'm looking to add a PHP-based website management tool to a web server I'm running, so updates can be done remotely without having to open ports for FTP. Can anybody recommend a good package that's easy to configure? - Theo -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Column name not liked by PHP/ODBC and Access

2001-12-05 Thread Brinkman, Theodore
Don't know if you've tried it, but typically, you put square brackets '[]' around a table or field name that ODBC doesn't like. (i.e.: it has a space in it, it has a name which is a reserved word in SQL, etc...) - Theo -Original Message- From: Jim [mailto:[EMAIL PROTECTED]]

[PHP] Re: server side games question

2001-11-16 Thread Brinkman, Theodore
Sorry for sending this message through the list, but I'm getting mail errors when I try to send it directly. - - - - - Sorry it took so long. The generation scripts aren't very fleshed out, and neither is the display format, but it's a good solid example of the basic example. Every main

[PHP] RE: server side games question

2001-11-13 Thread Brinkman, Theodore
PHP will do fine. What's the project? I'm a wannabe game developer, and I had a bit of fun a few months back with randomly generated, but reproducable, game worlds (in my case it was a star map for a space conquest type of game). It's a really neat concept, and its how alot of the 'big world'

[PHP] Suggesting a file name.

2001-09-07 Thread Brinkman, Theodore
I wrote a small script to generate an image file containing a version number for use in some web apps we are coding at work. The problem is, that with an up-to-date version of IE, the image shows up and can only be saved as a BMP. Older versions don't display it, but prompt for download and

RE: [PHP] Stoping Frame Breakers

2001-07-20 Thread Brinkman, Theodore
For the record: If you check the HTML spec, you'll discover that SCRIPT tags aren't allowed within HEAD tags. Most browsers handle them, but YMMV. (Last time I tested it, Mozilla (aka Netscape 6) didn't even display pages with scripts in the header because it's invalid html. I couldn't

[PHP] RE: [?] How to make many one line forms in a loop?

2001-03-14 Thread Brinkman, Theodore
Try it this way instead (my apologies for any typos, I'm getting ready to leave work and didn't bother to test it, but it should get the concept across). - - - - - ?php error_reporting(E_ALL); include("/home/httpd/php/open_db.inc"); // default setting for $sort_term if ($sort_term == null) {

RE: [PHP] Advanced PHP

2001-03-12 Thread Brinkman, Theodore
Actually, the egg did. Eggs existed LONG before land animals, much less chickens. Besides, the first chicken hatched from an egg laid by an almost-chicken. - Theo -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 6:38 PM To: [EMAIL

RE: [PHP] Double Click

2001-03-01 Thread Brinkman, Theodore
A tactic I've been planning to use, but don't know if it actually works or not, is to disable the button first thing in its onClick so the second click occurs on a disabled button. Does anybody know if this actually works or not? - Theo -Original Message- From: John Huggins

[PHP] Attaching to a PostgreSQL database on a Linux box from a VB app on NT4

2001-01-10 Thread Brinkman, Theodore
I think the subject pretty much says it all. I need help setting up things on both ends to let a VB app (on Windows, obviously) connect to a PostgreSQL database on a Linux box. Any help appreciated. - Theo Sorry about cross-posting to the two lists, but I figured it was pertinent to