RE: [PHP-WIN] Duplicate entry removal

2003-02-22 Thread Matt Hillebrand
array_unique() |-Original Message- |From: Per Christian [mailto:[EMAIL PROTECTED] |Sent: Saturday, February 22, 2003 7:56 AM |To: [EMAIL PROTECTED] |Subject: [PHP-WIN] Duplicate entry removal | | |Hi | |I'm building a PHP project for fun, and are going to get some |dates from my

RE: [PHP-WIN] include, phpself and inline frames

2003-02-22 Thread Matt Hillebrand
Make the action of the form poll.php instead of $PHP_SELF. $PHP_SELF is the parent document. Matt |-Original Message- |From: m1nt ch3w [mailto:[EMAIL PROTECTED] |Sent: Saturday, February 22, 2003 3:27 AM |To: [EMAIL PROTECTED] |Subject: [PHP-WIN] include, phpself and inline frames | |

RE: [PHP-WIN] IIS and index.php issue

2003-02-21 Thread Matt Hillebrand
Oh, you're right. My advice doesn't appy to your problem. Sorry. I just woke up. Matt |-Original Message- |From: Charles P. Killmer [mailto:[EMAIL PROTECTED] |Sent: Friday, February 21, 2003 11:55 AM |To: [EMAIL PROTECTED] |Subject: RE: [PHP-WIN] IIS and index.php issue | | |I know this

RE: [PHP-WIN] using frames

2003-02-21 Thread Matt Hillebrand
This is a client-side programming issue, so you would use JavaScript and not PHP. I guess you could do something like: a href=blah.php onClick=parent.document.title='The Blah Page'blah/a It can be fun/challenging to dynamically create javascript code with PHP. I sometimes like to use

RE: [PHP-WIN] Re: PWS or IIS?

2003-02-19 Thread Matt Hillebrand
IIS is no good if you ask me. It wouldn't let me use a custom 404 script, and sometimes it acts uprefusing to work. I also like Apache because I use Win2k and Linux. |-Original Message- |From: Ed [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, February 19, 2003 3:33 PM |To: [EMAIL

RE: [PHP-WIN] Re: mail() CC: header

2003-02-19 Thread Matt Hillebrand
| | |Matt Hillebrand [EMAIL PROTECTED] wrote in message 003e01c2d6c2$d75e5bc0$0100a8c0@beast">news:003e01c2d6c2$d75e5bc0$0100a8c0@beast... Has anyone here successfully sent CC headers with mail()? It simply won't work for me. I get different errors depending on which mail server I use

RE: [PHP-WIN] Problem with file upload!!

2003-02-18 Thread Matt Hillebrand
You need to write: form enctype=multipart/form-data action=Process.php method=post Matt |-Original Message- |From: Palli [mailto:[EMAIL PROTECTED]] |Sent: Tuesday, February 18, 2003 3:21 PM |To: [EMAIL PROTECTED] |Subject: [PHP-WIN] Problem with file upload!! | | |Hello I'm wondering

RE: [PHP-WIN] PHP Classes, what the heck??

2003-02-17 Thread Matt Hillebrand
Matt, Object Oriented Programming (OOP) is good because it promotes code reuse and code encapsulation. Well, PHP4 doesn't do a good job of this. I love OOP, but I'm waiting for PHP5 to do any OO with PHP. Stick to procedural PHP for now, and you'll be just fine. Matt Hillebrand |-Original

[PHP-WIN] mail() CC: header

2003-02-17 Thread Matt Hillebrand
Has anyone here successfully sent CC headers with mail()? It simply won't work for me. I get different errors depending on which mail server I use. Matt -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] html_entity_decode

2003-02-15 Thread Matt Hillebrand
I found this in the PHP Manual, but I haven't tried it: // For users prior to PHP 4.3.0 you may do this: function unhtmlentities ($string) { $trans_tbl = get_html_translation_table (HTML_ENTITIES); $trans_tbl = array_flip ($trans_tbl); return strtr ($string, $trans_tbl); }

RE: [PHP-WIN] basic variable question

2003-02-13 Thread Matt Hillebrand
You're not using the $totalqty variable in any of the statements that modify the $totalamount. Matt |-Original Message- |From: paradiddles [mailto:[EMAIL PROTECTED]] |Sent: Thursday, February 13, 2003 1:00 PM |To: [EMAIL PROTECTED] |Subject: [PHP-WIN] basic variable question | | | | Hi

RE: [PHP-WIN] basic variable question

2003-02-13 Thread Matt Hillebrand
Oh wait. Yes you are. Heck if I know. :) |-Original Message- |From: paradiddles [mailto:[EMAIL PROTECTED]] |Sent: Thursday, February 13, 2003 1:00 PM |To: [EMAIL PROTECTED] |Subject: [PHP-WIN] basic variable question | | | | Hi everyone. Why does my code work when I enter just 1 for

RE: [PHP-WIN] basic variable question

2003-02-13 Thread Matt Hillebrand
If you remove the first call to number_format(), it works. Matt |-Original Message- |From: paradiddles [mailto:[EMAIL PROTECTED]] |Sent: Thursday, February 13, 2003 1:00 PM |To: [EMAIL PROTECTED] |Subject: [PHP-WIN] basic variable question | | | | Hi everyone. Why does my code work

[PHP-WIN] PHP mhash extension howto

2003-02-13 Thread Matt Hillebrand
Dear Matt, I noticed on php-windows that you seemed to have some trouble getting the php_mhash.dll to work for you. Personally I can confirm that this module works just fine on my dev machine (running win98, PHP 4.3.0, Apache_1.3.27/mod_ssl Apache_2.0.44/mod_ssl). So you probably need to do some

RE: [PHP-WIN] php defining variable defaults?

2003-02-13 Thread Matt Hillebrand
You could do if(!isset($var)) $var = 'asdf'; Or if you're using a function, you can specify default values in the parameter list: function my_func($var1 = 'default1', $var2 = 'default2') { // do stuff // do stuff } Matt |-Original Message- |From:

RE: [PHP-WIN] Apostrophe in login causes error

2003-02-12 Thread Matt Hillebrand
Check out addslashes() and stripslahes(). Also, when you're populating name fields using values from the database, try using htmlspecialchars(). I found that to be very useful. Matt |-Original Message- |From: Herhuth, Ron [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, February 12, 2003

[PHP-WIN] mhash extension module

2003-02-12 Thread Matt Hillebrand
Does anyone know how to use the php_mhash.dll that comes with PHP for Windows? If I uncomment that line in my php.ini file and restart Apache, it says that that module can't be found. I know the file is in my extension directory. What's up? Thanks. Matt

RE: [PHP-WIN] Need Help with Classes

2003-02-12 Thread Matt Hillebrand
(); | |and finally i try and acces myVar from outside the class: | |$x = ($someVar-$myVar[u]); |$y = ($someVar-$myVar[v]); | |Nada, rien, nicht, no dice... |Any help would be appreciated, | |Paul | | |From: Matt Hillebrand [EMAIL PROTECTED] |To: 'Paul Dymecki' [EMAIL PROTECTED] |Subject: OOP in PHP |Date: Wed

RE: [PHP-WIN] mhash extension module

2003-02-12 Thread Matt Hillebrand
, February 13, 2003 1:30 AM |To: Matt Hillebrand; [EMAIL PROTECTED] |Subject: Re: [PHP-WIN] mhash extension module | | |Hi Matt, | |Maybe you checked it already. How is the extensions_dir |specified in your |php.ini. Should be something like: c:/php/extensions | |Cheers, |RICO. | | | |At 20:55 12/02

RE: [PHP-WIN] Confirmation e-mail

2003-02-09 Thread Matt Hillebrand
That sounds mighty secure, but I think he's trying to verify that the email address does indeed belong to the person creating an account. I use the following two functions to create a random number, and then I insert it into the DB. Then I send a URL inside the confirmation email that points to a

RE: [PHP-WIN] If statement inside of for statement

2003-02-09 Thread Matt Hillebrand
|To: Matt Hillebrand |Subject: RE: [PHP-WIN] If statement inside of for statement | | |Matt, |I'm pasting a couple of values from a form page. |I'm check against a flat file database. |After the for each statement display the string $line and |$move. the value are equal, but the if statement

[PHP-WIN] PHP and Apache2 experimental?

2003-02-07 Thread Matt Hillebrand
Hello. I'm just wondering when the use of PHP with Apache 2 for Windows will no longer be considered experimental. I'm tired of using Apache 1.3x on our Windows 2000 server. Have any of you had any problems with PHP4/Apache2 on Windows? Thanks.

[PHP-WIN] code that highlights itself

2002-12-13 Thread Matt Hillebrand
The following chunk of code may be included at the top of a file in order to do its own syntax highlighting. It's looking pretty good so far, except for a mysterious space before the first opening PHP tag in the output. Does anyone know why that space is there? ? print 'htmlheadstyle'; //

RE: [PHP-WIN] Re: Security using Apache Windows

2002-04-22 Thread Matt Hillebrand
Why do I receive this exact same email message every single day?!?! I normally get it several times each day. Matt |-Original Message- |From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]] |Sent: Monday, April 15, 2002 8:37 AM |To: [EMAIL PROTECTED] |Subject: FW: [PHP-WIN] Re:

RE: [PHP-WIN] checking for characters

2002-04-09 Thread Matt Hillebrand
I like Egil's idea of readable code using explode and regular expressions. Or, you could use this function I wrote: function isValidEmail($email) { if(strlen($email) 6) return false; $at = -1; // index of '@' for($i=0; $istrlen($email); $i++) { if($email[$i] == '@')

RE: [PHP-WIN] checking for characters

2002-04-09 Thread Matt Hillebrand
of explodes though Ross -Original Message- From: Matt Hillebrand [mailto:[EMAIL PROTECTED]] Sent: 10 April 2002 00:34 To: 'Egil Helland'; 'brother' Cc: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] checking for characters I like Egil's idea of readable code using explode and regular

RE: [PHP-WIN] Formatting 'body' using mailto: command

2002-03-06 Thread Matt Hillebrand
I know that with mail() in Windows, you must use \r\n for each carriage return line feed, so why don't you try this: %5Cr%5Cn Matt Hillebrand -Original Message- From: Mick [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 12:47 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN

RE: [PHP-WIN] Counter in PHP and System Variables

2002-03-03 Thread Matt Hillebrand
'); $result = mysql_query(select hits from pages where id='$id'); list($hits) = mysql_fetch_array($result); You could have the $id embedded in your page, or you could set up something more dynamic. Matt Hillebrand -Original Message- From: Wayne Hinch [mailto:[EMAIL PROTECTED]] Sent: Sunday

RE: [PHP-WIN] Cannot connect to MySQL with PHP 4.1.1

2002-03-01 Thread Matt Hillebrand
($sql) I don't think I was getting the same error message you were though. Has anyone else had this strange problem? Thanks. Matt Hillebrand Web Developer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Egil Helland [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01

RE: [PHP-WIN] sending mail with mail(), Post Cast Server

2002-03-01 Thread Matt Hillebrand
Everyone with mail() problems should consider www.postcastserver.com. It's free SMTP server software that works quite well. Just don't forget to disable IIS' smtp server. Matt Hillebrand Web Developer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: DL Neil [mailto

RE: [PHP-WIN] sending mail with mail(), Post Cast Server

2002-03-01 Thread Matt Hillebrand
I've found that PHP/UNIX is better than PHP/Windows in every way, including the use of mail() with sendmail. I had enormous problems with mail() in Windows. Post Cast Server fixed all that. Matt Hillebrand Web Developer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message

RE: [PHP-WIN] mail() function EXTREMELY slow

2002-02-27 Thread Matt Hillebrand
, but my boss wants me to do it Windows first and then (maybe) make the switch to red hat. Everything should transfer smoothly since I'm using Apache/MySQL/PHP, using $DOCUMENT_ROOT and forward slashes everywhere, right? Thanks. Matt Hillebrand Web Developer [EMAIL PROTECTED] -Original

[PHP-WIN] mail() function EXTREMELY slow

2002-02-26 Thread Matt Hillebrand
seems to be broken. Thanks! Matt Hillebrand [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] mail() function EXTREMELY slow

2002-02-26 Thread Matt Hillebrand
Yeah, I know about the max time variable, but it would be unacceptable to take over a minute or two to send a handful of emails! I read an article that said you could use your ISP's SMTP server for the mail() function, but that didn't seem to work. Matt Hillebrand Web Developer [EMAIL