oftwares Financeiros
-Mensagem original-
De: Philip Thompson [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 6 de maio de 2008 11:34
Para: PHP-General List
Assunto: Re: [PHP] strange behavior, when converting float to int
On May 6, 2008, at 1:38 AM, Maxim Antonov wrote:
> Hi,
On Tue, 2008-05-06 at 09:34 -0500, Philip Thompson wrote:
> I got the same results. I'm not exactly sure what's happening, but
> I'd
> be curious to see if there's anyone else who can shed some light.
>
> PHP Version 5.2.4.
Is this not coming from the underlying C libs that directly use the F
On May 6, 2008, at 1:38 AM, Maxim Antonov wrote:
Hi, all!
Is this a bug?
[EMAIL PROTECTED]:~$ /usr/bin/php 1.php
45
45
float(46)
[EMAIL PROTECTED]:~$ /usr/bin/php -v
PHP 5.3.0-dev (cli) (built: Apr 4 2008 11:37:33)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998
Hi, all!
Is this a bug?
[EMAIL PROTECTED]:~$ /usr/bin/php 1.php
45
45
float(46)
[EMAIL PROTECTED]:~$ /usr/bin/php -v
PHP 5.3.0-dev (cli) (built: Apr 4 2008 11:37:33)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2008 Zend Technologies
[EMAIL PROTECTED]:~$ cat
$i only has the name of the FILE in it, not the whole path.
You need to provide the full path to unlink() to make this work right.
In theory, you could manage to provide just the relative path from the
current working directory, but, honestly, 99% of the time, a FULL PATH
is just easier to figu
Hello:
I have a directory on a server that has php code that creates and
writes to directories as such; /tiles_.*/.
Each directory with a matching name has graphics files written to it.
i'm trying to write a script the will
eliminate the graphics files and the directories they are in
(tiles_.*
On Friday 17 January 2003 01:37, Marc Cluet wrote:
> Hi guys
> I have upgraded from PHP 4.2.2 to PHP 4.3.0 and some of my php script
> got broken due to that.
> This scripts use backticks to execute functions, the problem is the
> environment where that functions are executed.
>
> I have this test
Hi guys
I have upgraded from PHP 4.2.2 to PHP 4.3.0 and some of my php script
got broken due to that.
This scripts use backticks to execute functions, the problem is the
environment where that functions are executed.
I have this test code:
$dir=`pwd`;
echo "I am on directory: $dir";
?>
If I ex
On Saturday 18 May 2002 02:39, Sergio Tirado wrote:
> I just installed Red Hat 7.3 with Apache and PHP. I ran a simple script
> to test the imap_open function and it doesn't work when using the
> values for servers on my subnet.
>
> http://www.gym.itesm.mx/imap.php
>
> However, if the mailbox I re
I just installed Red Hat 7.3 with Apache and PHP. I ran a simple script
to test the imap_open function and it doesn't work when using the
values for servers on my subnet.
http://www.gym.itesm.mx/imap.php
However, if the mailbox I request to open is on another server outside, it
does work.
Hi.
I'm running Apache 1.3.19/php 4.06 under OpenBSD.
I have 30 virtual domains... all plain html (or w/ little php), some
date functions and mysql queries.
But one of them has a lot of php.
It's giving me a strange problem...
Here is index.php
Simple (the commonHeader / commonFooter idea
Hello,
Thanks for your great advice,
and also the tutorial http://www.aditus.nu/jpgraph/jpg_phpoo.php helps so much.
I guess I was confusing a copy of object and a reference of object.
btw that's too confusing!
"Gyozo Papp" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've not tried your code yet, b
Hello.
I'm new to this list, and I once looked over the archives,
but the problem like this might not have been proposed, so I ask...
please see the code below
sorry to be too long.
(the result of this code is supposed to be seen with HTML browser)
--
Sent: Wednesday, February 14, 2001 5:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP] strange behavior of mysql & php
Very strange thing happened today. I had a db and a website that was running
fine and wanted to add another mysql db to the account, and when i did the
site no longer connects to the mys
Very strange thing happened today. I had a db and a website that was running
fine and wanted to add another mysql db to the account, and when i did the
site no longer connects to the mysql server. I did not change any passwords
or anything else for that matter, simply added a database with a diff
> That is, we can have
> $TestObject->mTestMember = create_function('','echo "TestMember";');
> but we can't do
> $TestObject->mTestMember();
>
> Can I get around this using clever placement of {}'s or ()'s?
Wild Guess:
{$TestObject->mTestMember}();
--
Visit the Zend Store at http://www.zen
[script at end]
Does it seem strange that although object members can
store functions, they can't be used as methods?
That is, we can have
$TestObject->mTestMember = create_function('','echo "TestMember";');
but we can't do
$TestObject->mTestMember();
Can I get around this using clever plac
17 matches
Mail list logo