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
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
|
|
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
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
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
|
|
|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
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
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
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
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);
}
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
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
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
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
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:
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
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
();
|
|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
, 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
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
|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
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.
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'; //
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:
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] == '@')
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
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
');
$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
($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
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
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
, 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
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
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
34 matches
Mail list logo