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

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

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

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

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

RE: [PHP] strange behavior of mysql & php

2001-02-15 Thread Maxim Maletsky
Well, If you got it from myPHPadmin then you'll get it from the website as well. Both are on the web and using PHP. Make sure you have all the passwords right. (Just like in phpmyadmin) Cheers, Maxim Maletsky -Original Message- From: Altaf Shaikh [mailto:[EMAIL PROTECTED]] Sent: Wedn

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