Re: [PHP] Re: PHP/AJAX File DragDrop

2007-12-01 Thread Jim Lucas
Dan wrote: Unfortunatly javascript can't access the filesystem so it can't get filenames. The closest way you could do something like this would be to use Java (not javascript, totally different). It's a permissions thing, just the way JS and everything else is designed. - Dan Andrei

[PHP] sprintf() oddness

2007-12-01 Thread Christoph Boget
Why does sprintf( '%.03f', 0.1525 ) return 0.152 while sprintf( '%.03f', 0.1575 ) return 0.158? The 4th significant digit in both cases is '5' but in the first case, it's rounded down but in the second case it is rounded up. Is sprintf() basing it's decision on the value of the 3rd

Re: [PHP] sprintf() oddness

2007-12-01 Thread Per Jessen
Christoph Boget wrote: Why does sprintf( '%.03f', 0.1525 ) return 0.152 while sprintf( '%.03f', 0.1575 ) return 0.158? I am using PHP 4.3.11 I see the same behaviour in 5.2.4 /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] sprintf() oddness

2007-12-01 Thread Jochem Maas
Per Jessen wrote: Christoph Boget wrote: Why does sprintf( '%.03f', 0.1525 ) return 0.152 while sprintf( '%.03f', 0.1575 ) return 0.158? most likely it's an artifact of the fact that the binary representations of those floating point values are not exact e.g. 0.1575 is

Re: [PHP] Join question

2007-12-01 Thread Jochem Maas
Crayon Shin Chan wrote: On Friday 30 November 2007, Jochem Maas wrote: ... So let me get this straight, only paid up members of the old boys club are allowed to make off-topic posts? The rest can lump it? if by the rest you mean you, then yes, absolutely, please crawl back under the

Re: [PHP] Join question

2007-12-01 Thread Jochem Maas
Jay Blanchard wrote: [snip] If you try you can probably make a connection from php to everything under the sun, doesn't mean everything under the sun is an appropriate topic for this list. [/snip] The Oracle of PHP - 6 Degrees of Separation I joined PHP to Oracle, Kevin Bacon and

[PHP] PHP Celebrity Death Match ...

2007-12-01 Thread Jochem Maas
Brad v. Crayon. any good animators among us up to the challenge? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Join question

2007-12-01 Thread Jochem Maas
chris smith wrote: On Dec 1, 2007 3:53 PM, Crayon Shin Chan [EMAIL PROTECTED] wrote: On Saturday 01 December 2007, tedd wrote: At 10:21 AM +0800 11/30/07, Crayon Shin Chan wrote: On Friday 30 November 2007, tedd wrote: I'm trying to understand joins, Ask on a database related list. Really?

RE: [PHP] Join question

2007-12-01 Thread tedd
At 11:07 PM -0600 11/30/07, Jay Blanchard wrote: The Oracle of PHP - 6 Degrees of Separation I joined PHP to Oracle, Kevin Bacon and temperature all in one shot. Sounds like an omelette. :-) Tedd, what did you want to know about joins? I think I got it -- at least for the problem that

Re: [PHP] PHP Celebrity Death Match ...

2007-12-01 Thread tedd
At 2:19 PM +0100 12/1/07, Jochem Maas wrote: Brad v. Crayon. any good animators among us up to the challenge? I'm not good, but I'm childish enough. http://www.webbytedd.com/aa/brain-v-brain/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com --

Re: [PHP] Re: PHP/AJAX File DragDrop

2007-12-01 Thread Rafael
Jim Lucas wrote: Dan wrote: Unfortunatly javascript can't access the filesystem so it can't get filenames. The closest way you could do something like this would be to use Java (not javascript, totally different). It's a permissions thing, just the way JS and everything else is designed.

Re: [PHP] Quick question on data formatting

2007-12-01 Thread tedd
At 12:30 AM -0500 11/29/07, Robert Cummings wrote: On Wed, 2007-11-28 at 22:19 -0700, Jon Westcot wrote: $123,456.78 becomes 123456.78 $24,680 becomes 24680 1234B becomes 1234 $number = ereg_replace( '[^[:digit:].]', '' ); Cheers, Rob. Sweet. Another one of those

[PHP] Image functions: date?

2007-12-01 Thread Dotan Cohen
I remember once coming across a bit of php code that displayed the created date of a jpeg image. I cannot find it, and I cannot find anything related to that in tfm. Can someone give me a push in the general direction? Thanks in advance. Dotan Cohen http://what-is-what.com http://gibberish.co.il

Re: [PHP] sprintf() oddness

2007-12-01 Thread Per Jessen
Jochem Maas wrote: Per Jessen wrote: Christoph Boget wrote: Why does sprintf( '%.03f', 0.1525 ) return 0.152 while sprintf( '%.03f', 0.1575 ) return 0.158? most likely it's an artifact of the fact that the binary representations of those floating point values are not exact

Re: [PHP] sprintf() oddness

2007-12-01 Thread tedd
At 7:10 AM -0500 12/1/07, Christoph Boget wrote: Why does sprintf( '%.03f', 0.1525 ) return 0.152 while sprintf( '%.03f', 0.1575 ) return 0.158? The 4th significant digit in both cases is '5' but in the first case, it's rounded down but in the second case it is rounded up. Is

[PHP] Re: Image functions: date?

2007-12-01 Thread Dotan Cohen
On 01/12/2007, Dotan Cohen [EMAIL PROTECTED] wrote: I remember once coming across a bit of php code that displayed the created date of a jpeg image. I cannot find it, and I cannot find anything related to that in tfm. Can someone give me a push in the general direction? Thanks in advance. I

[PHP] Re: Image functions: date?

2007-12-01 Thread Dotan Cohen
On 01/12/2007, Dotan Cohen [EMAIL PROTECTED] wrote: On 01/12/2007, Dotan Cohen [EMAIL PROTECTED] wrote: I remember once coming across a bit of php code that displayed the created date of a jpeg image. I cannot find it, and I cannot find anything related to that in tfm. Can someone give me a

Re: [PHP] Join question [solved]

2007-12-01 Thread Daniel Brown
On Nov 30, 2007 10:00 PM, tedd [EMAIL PROTECTED] wrote: At 2:00 PM +1100 11/30/07, Chris wrote: Out of curiosity, what SQL server (and version) are you using? I currently have MySQL 5.0.33 on my dev box and I had no problem with the query I gave you. Perhaps it's a version issue. There really

[PHP] problems accesing an object via globals

2007-12-01 Thread julian
I want to open a database connection at program initialization and use that very same connection via globals initilizating ( loading from db) other objects. Basically index.php $db=new mysqli(host,us,pass,db); if(mysqli_connect_errno()){ die('errordb conex'); } switch ($var){

[PHP] Re: problems accesing an object via globals

2007-12-01 Thread julian
julian wrote: I want to open a database connection at program initialization and use that very same connection via globals initilizating ( loading from db) other objects. Basically index.php $db=new mysqli(host,us,pass,db); if(mysqli_connect_errno()){ die('errordb conex'); } switch

Re: [PHP] Join question

2007-12-01 Thread Daniel Brown
On Nov 30, 2007 11:53 PM, Crayon Shin Chan [EMAIL PROTECTED] wrote: You ought to know by now that there is the php-db list. Even so your question doesn't belong even there because it has zilch to do with php, but it is still slightly more appropriate to post there than here. Put on your

RE: [PHP] PHP Celebrity Death Match ...

2007-12-01 Thread Jay Blanchard
[snip] Brad v. Crayon. [/snip] A very small nail up against a small colored wax cylinder is what came to mind, and I laughed a great deal at the animation in my head. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Celebrity Death Match ...

2007-12-01 Thread Daniel Brown
On Dec 1, 2007 1:10 PM, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Brad v. Crayon. [/snip] A very small nail up against a small colored wax cylinder is what came to mind, and I laughed a great deal at the animation in my head. In Pennsyltucky, we call them things candles. -- Daniel

Re: [PHP] Re: how do i get a printout of original multipart post data

2007-12-01 Thread Olav Mørkrid
thanks, but that won't work. i need to see post data from other people out there, not my own data. still a mystery to me why php doesn't let developers see incoming raw data. On 01/12/2007, Dan [EMAIL PROTECTED] wrote: Olav Mørkrid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Re: how do i get a printout of original multipart post data

2007-12-01 Thread Nathan Nobbe
On Dec 1, 2007 2:13 PM, Olav Mørkrid [EMAIL PROTECTED] wrote: thanks, but that won't work. i need to see post data from other people out there, not my own data. still a mystery to me why php doesn't let developers see incoming raw data. i think this is what youre looking for:

[PHP] include config.php does not work anymore after PHP 5.2

2007-12-01 Thread wmac
Hello, I have been working with PHP 5.0 and my register_globals has always been Off since PHP 4.1 Today I upgraded to PHP 5.2 and now neither of my include config.php work. Neither of the variables defined in include files are even included. Anyone knows what has been changed and what can I