Re: [PHP] Floored!

2006-02-24 Thread Rasmus Lerdorf
Ben Miller wrote: If anyone has an answer for this, I would be greatly appreciative. I was trying to compare two values, the first is the total cost of products to be refunded, and the second is the original order total. To the naked eye, they both were coming out as 102.85, yet an

Re: [PHP] Floored!

2006-02-24 Thread Brandon Enright
On Thu, 2006-02-23 at 23:38 -0700, Ben Miller wrote: If anyone has an answer for this, I would be greatly appreciative. I was trying to compare two values, the first is the total cost of products to be refunded, and the second is the original order total. To the naked eye, they both were

[PHP] list days between two dates

2006-02-24 Thread pol
Anyony know a funtction to do this? I need to popup a select with the dates. thank's Pol -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calling API on Windows?

2006-02-24 Thread Jochem Maas
HoWang Wang wrote: Hi, How can I use it? For example: [lib='user32.dll'] int MessageBoxA(int handle, char *text, char *caption, int type); How can I write this sentence? What is the format? And I want to use GetComputerNameA, what can I do? ?php $win32_idl = [lib='user32.dll'] int

Re: [PHP] Calling API on Windows?

2006-02-24 Thread HoWang Wang
Okay, here is the error: http://hwhome.hkto.net:808/apidie.jpg I'm using CHT version of windows, but I think you should seen this window before. I've searched on google, but I find lots of ffi that != Foreign Function Interface :( I found this:

[PHP] loop Q

2006-02-24 Thread William Stokes
What does this do in a for loop? $counter+=1 Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] loop Q

2006-02-24 Thread Duncan Hill
On Friday 24 February 2006 10:34, William Stokes wrote: What does this do in a for loop? $counter+=1 Increments $counter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] loop Q

2006-02-24 Thread ÃmìtVërmå
It depicts $counter = $counter+1; William Stokes wrote: What does this do in a for loop? $counter+=1 Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] loop Q

2006-02-24 Thread Jochem Maas
William Stokes wrote: What does this do in a for loop? $counter+=1 it's shorthand for $counter = $counter + 1; which in this case (because 1 is being added) can also be written as: $counter++; or ++$counter; those last 2 alternatives give the same result but they are _not_ exactly

RE: [PHP] base64_encode, forward slashes and mod_rewrite

2006-02-24 Thread Jared Williams
There are variants of base64, which replace the + / characters with something less likely to cause problems. http://en.wikipedia.org/wiki/Base64 Jared sorry Ive done it again, for anyones interest, you might have to urlencode the string twice for mod_rewrite to accept encrypted and

Re: [PHP] loop Q

2006-02-24 Thread William Stokes
Cheers! Jochem Maas [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] William Stokes wrote: What does this do in a for loop? $counter+=1 it's shorthand for $counter = $counter + 1; which in this case (because 1 is being added) can also be written as: $counter++; or

[PHP][SOLVED] Problem with mail() on Debian

2006-02-24 Thread George Pitcher
Hi, Thanks to David - his suggestion to comment out the php.ini sendmail_path line and reverting to using Manuel's email class solved the problem. Many thanks to all. George -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED] Sent: 23 February 2006 7:58 pm To:

[PHP] Date question

2006-02-24 Thread William Stokes
Hello, I have a datetime column in MySQL DB. How can I match to that column from php code if I only have the date information available. 2006-02-24 12:00:00 against2006-02-24 This might be more SQL question sorry about that. Thanks -Will -- PHP General Mailing List

[PHP] Re: Date question

2006-02-24 Thread William Stokes
Yep. Nevermind... (and back to sleep) William Stokes [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] Hello, I have a datetime column in MySQL DB. How can I match to that column from php code if I only have the date information available. 2006-02-24 12:00:00 against2006-02-24

Re: [PHP] Date question

2006-02-24 Thread ÃmìtVërmå
If you are only avail with date-information then too you can use existing DATETIME field as following query.. INSERT INTO `test` (`testingdate` ) VALUES ( '2006-06-06'); it will take care of itself. Second way is you can change DATETIME field to VARCHAR (if you're not going to use those

Re: [PHP] loop Q

2006-02-24 Thread Jochem Maas
[EMAIL PROTECTED] wrote: William Stokes wrote: What does this do in a for loop? $counter+=1 I read it as if he'd come across this: for ($counter=0; $counter$stopper; $counter+=1) { ... lots of code ... $counter+=1; } Which, I think, would increment the counter twice on each pass

[PHP] Compiling PHP with freetype2 on MacOS X

2006-02-24 Thread Marcus Bointon
Recently I've not been able to compile PHP 5.1.2 on OS X 10.4 with gd and freetype2 support. I've found various threads on this, but none of the proposed fixes work. My configure line includes: --with-gd=/sw --with-freetype-dir=/sw/lib/freetype2 --with-t1lib=/sw It doesn't report any

Re: [PHP] list days between two dates

2006-02-24 Thread tedd
Anyony know a funtction to do this? I need to popup a select with the dates. thank's Pol Pol: Try this: http://www.weberdev.com/get_example-4330.html tedd -- http://sperling.com -- PHP General Mailing List

Re: [PHP] [How-to]flatfile New system with comments

2006-02-24 Thread tedd
How would I make a flatfile new systen with the ability for users to comment on the news selection (no login required)? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com Hi: Perhaps this might help: http://www.weberdev.com/get_example-420.html tedd --

[PHP] $_POST to function?

2006-02-24 Thread Jason Gerfen
I am not sure why this is not working. Aren't $_POST vars superglobals? I am trying to pass the $_POST array as an argument to a function and nothing is being returned. Any help is appreciated. return global_template( 3, $_POST, count( $_POST ), $message ); function global_template( $cmd,

Re: [PHP] PHP Manual in PDF format

2006-02-24 Thread tedd
Hi ALL I am looking out for PHP Manual in PDF Format Thanks in Advance Regards Kaushal Try Google: http://iwing.cpe.ku.ac.th/tutorial/PHP/PHPmanual.pdf I'm sure there are others. tedd --

[PHP] Re: $_POST to function?

2006-02-24 Thread Jason Gerfen
Tanoor Dieng wrote: Hi, are there some variables in your post array(aka are you sure that $_POST is not empty)? Normally this should works. Tanoor. 2006/2/24, Jason Gerfen [EMAIL PROTECTED]: I am not sure why this is not working. Aren't $_POST vars superglobals? I am trying to pass the

Re: [PHP] Re: $_POST to function?

2006-02-24 Thread Vidyut Luther
Since $_POST is a superglobal, it should not lose scope inside a function() call. I could be wrong though. Also, curious if $args is empty.. what is $num and $message. ? Also.. you're calling a function in your return statement ? On 2/24/06, Jason Gerfen [EMAIL PROTECTED] wrote: Tanoor Dieng

Re: [PHP] Re: $_POST to function?

2006-02-24 Thread Jason Gerfen
Vidyut Luther wrote: Since $_POST is a superglobal, it should not lose scope inside a function() call. I could be wrong though. Also, curious if $args is empty.. what is $num and $message. ? Also.. you're calling a function in your return statement ? On 2/24/06, Jason Gerfen [EMAIL

Re: [PHP] Re: $_POST to function?

2006-02-24 Thread Christopher Taylor
I am not as familiar with php as I am c++ but I wonder if you need to pass by reference? Does this make sense in the context of php? One other thing I would try is setting $temp = $_Post and then passing $temp. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: $_POST to function?

2006-02-24 Thread Jason Gerfen
Christopher Taylor wrote: I am not as familiar with php as I am c++ but I wonder if you need to pass by reference? Does this make sense in the context of php? One other thing I would try is setting $temp = $_Post and then passing $temp. Chris Yeah, I actually tried that as well. --

RE: [PHP] $_POST to function?

2006-02-24 Thread Dan Parry
Why are you passing the POST array? As it's superglobal why not just work directly on it within the function? Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original Message- From: Jason Gerfen

Re: [PHP] Re: $_POST to function?

2006-02-24 Thread Vidyut Luther
just for fun, I tried to do what you're doing. http://www.phpcult.com/jason.phps http://www.phpcult.com/jason.php to run it.. it seems to be working.. the problem is in your code.. but not PHP properly.. On 2/24/06, Jason Gerfen [EMAIL PROTECTED] wrote: Christopher Taylor wrote: I am not

Re: [PHP] Calling API on Windows?

2006-02-24 Thread tg-php
Don't know if it helps much, but maybe there's something buried in WinBinder (http://www.winbinder.com) that could help. It's a much better (IMO) Windows GUI for PHP than GTK is... and is windows specific so might have have w32/ffi helper functions. Good luck! -TG = = = Original message = =

Re: [PHP] $_POST to function?

2006-02-24 Thread Jason Gerfen
Dan Parry wrote: Why are you passing the POST array? As it's superglobal why not just work directly on it within the function? Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original Message-

RE: [PHP] $_POST to function?

2006-02-24 Thread Jared Williams
Why are you passing the POST array? As it's superglobal why not just work directly on it within the function? Passing it has distinct advantages, like being able to test the function. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] $_POST to function?

2006-02-24 Thread Peter Lauri
Is the function actually returning anything? Aren't you just echoing the content of the $_POST? -Original Message- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 10:27 PM To: PHP General (E-mail) Subject: [PHP] $_POST to function? I am not sure why this is

RE: [PHP] $_POST to function?

2006-02-24 Thread Peter Lauri
Do: function global_template( $cmd, $args, $num, $message ) { ob_start(); echo pre; print_r( $args ); echo /pre; ob_end_flush(); return ob_get_contents(); } -Original Message- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 10:27 PM To: PHP General

Re: [PHP] $_POST to function?

2006-02-24 Thread Jason Gerfen
Peter Lauri wrote: Is the function actually returning anything? Aren't you just echoing the content of the $_POST? -Original Message- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 10:27 PM To: PHP General (E-mail) Subject: [PHP] $_POST to function? I

Re: [PHP] Date question

2006-02-24 Thread Sumeet
William Stokes wrote: Hello, I have a datetime column in MySQL DB. How can I match to that column from php code if I only have the date information available. 2006-02-24 12:00:00 against2006-02-24 This might be more SQL question sorry about that. Thanks -Will use

Re: [PHP] Date question

2006-02-24 Thread Chris Boget
I have a datetime column in MySQL DB. How can I match to that column from php code if I only have the date information available. 2006-02-24 12:00:00 against2006-02-24 This might be more SQL question sorry about that. use date_format(%Y-%m-%d,'date_column') in the sql

Re: [PHP] $_POST to function? [SOLVED]

2006-02-24 Thread Jason Gerfen
Peter Lauri wrote: http://th.php.net/manual/en/function.return.php -Original Message- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: Saturday, February 25, 2006 12:29 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] $_POST to function? Peter Lauri wrote:

[PHP] Testing

2006-02-24 Thread jblanchard
I am conducting a test of my new e-mail address. This is only a test. If this were not a test you would be instructed to tune into your locale emergency sarcasm system. Please RTFM and Have a PHP Day! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Testing

2006-02-24 Thread John Nichel
[EMAIL PROTECTED] wrote: I am conducting a test of my new e-mail address. This is only a test. If this were not a test you would be instructed to tune into your locale emergency sarcasm system. Please RTFM and Have a PHP Day! Dork. ;) -- John C. Nichel IV Programmer/System Admin (ÜberGeek)

[PHP] mysql help..

2006-02-24 Thread ganu ullu
Hi all, I installed a opensource php project, and now is working fine for me. Now that project has some 40-50 MySQL tables.. now I want to change something in that but the I am not able to get the DB flow.. Is any body knows any tool by which we can create/make the relationship diagram like we

Re: [PHP] mysql help..

2006-02-24 Thread John Nichel
ganu ullu wrote: Hi all, I installed a opensource php project, and now is working fine for me. Now that project has some 40-50 MySQL tables.. now I want to change something in that but the I am not able to get the DB flow.. Is any body knows any tool by which we can create/make the

[PHP] session vars on Windows Server?

2006-02-24 Thread Ing. Tom�s Liendo
Hi I have the following problem: I developed a system that it runs perfec in my PC and in hosting server with Linux. But the session vars don't work in a hosting server with Windows... The technical contact of the Server with Windows says me that the problem is a space before the function

Re: [PHP] mysql help..

2006-02-24 Thread chris smith
Ask the open-source project for help. They will be able to answer your questions better than we can. On 2/25/06, ganu ullu [EMAIL PROTECTED] wrote: Hi all, I installed a opensource php project, and now is working fine for me. Now that project has some 40-50 MySQL tables.. now I want to

Re: [PHP] mysql help..

2006-02-24 Thread Tom Rogers
Hi, Saturday, February 25, 2006, 5:53:23 AM, you wrote: gu Hi all, gu I installed a opensource php project, and now is working fine for me. gu Now that project has some 40-50 MySQL tables.. gu now I want to change something in that but the I am not able to get the DB gu flow.. gu Is any body

[PHP] email to db

2006-02-24 Thread Mark
Does anyone know if its possible or how difficult it would be to have a user send an email from outlook express to a websites mysql database and update records. Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Manual in PDF format

2006-02-24 Thread ÃmìtVërmå
Good.. you went straight into their vault to those PDF :) tedd wrote: Hi ALL I am looking out for PHP Manual in PDF Format Thanks in Advance Regards Kaushal Try Google: http://iwing.cpe.ku.ac.th/tutorial/PHP/PHPmanual.pdf I'm sure there are others. tedd -- PHP General Mailing

Re: [PHP] email to db

2006-02-24 Thread chris smith
On 2/25/06, Mark [EMAIL PROTECTED] wrote: Does anyone know if its possible or how difficult it would be to have a user send an email from outlook express to a websites mysql database and update records. You could write a script to parse the email and do the update. It would come in on 'stdin'.