RES: [PHP] strange behavior, when converting float to int

2008-05-06 Thread Thiago Pojda
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,

Re: [PHP] strange behavior, when converting float to int

2008-05-06 Thread Paul Scott
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

Re: [PHP] strange behavior, when converting float to int

2008-05-06 Thread Philip Thompson
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

[PHP] strange behavior, when converting float to int

2008-05-05 Thread Maxim Antonov
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

Re: [PHP] strange behavior

2006-07-15 Thread Richard Lynch
$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

[PHP] strange behavior

2006-07-15 Thread jekillen
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_.*

Re: [PHP] Strange behavior on backtick operator execution environment

2003-01-16 Thread Jason Wong
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

[PHP] Strange behavior on backtick operator execution environment

2003-01-16 Thread Marc Cluet
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

Re: [PHP] Strange behavior with imap, php and apache

2002-05-17 Thread Jason Wong
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

[PHP] Strange behavior with imap, php and apache

2002-05-17 Thread Sergio Tirado
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.

[PHP] Strange Behavior... is it php bug? please help... i'm dying.!!!

2001-07-17 Thread Martin Marconcini
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

Re: [PHP] strange behavior on manipulating the array of class object

2001-06-27 Thread Moriyoshi Koizumi
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

[PHP] strange behavior on manipulating the array of class object

2001-06-25 Thread Moriyoshi Koizumi
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) --

RE: [PHP] strange behavior of mysql & php

2001-02-15 Thread Maxim Maletsky
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

[PHP] strange behavior of mysql & php

2001-02-14 Thread Altaf Shaikh
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

Re: [PHP] Strange behavior with parser/methods?

2001-02-08 Thread Richard Lynch
> 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

[PHP] Strange behavior with parser/methods?

2001-02-04 Thread T.S.Bhatnagar
[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