Re: Convert to int...?

From: Date: Wed, 22 Aug 2001 15:22:01 +0000
Subject: Re: Convert to int...?
Groups: php.general 
Request: Send a blank email to php-general+get-63913@lists.php.net to get a copy of this message
----- Original Message ----- From: "Andrey Hristov" <ahristov@icygen.com> To: "Seb Frost" <seb@raceshoot.com> Sent: Wednesday, August 22, 2001 6:20 PM Subject: Re: [PHP] Convert to int...? > Try > <?php > $a=7.50; > $a=(int) floor($a); > var_dump($a); > ?> > This returns on my machine: > int(7) > > Andrey Hristov > http://www.icygen.com > > ----- Original Message ----- > From: "Seb Frost" <seb@raceshoot.com> > To: <php-general@lists.php.net> > Sent: Wednesday, August 22, 2001 6:07 PM > Subject: [PHP] Convert to int...? > > > > I didn't think php was this fussy, but the following code seems to not > work > > because the numbers are floats. round() doesn't seem to help either: > > > > $siz=(72/160)*GetImageWidth($fileID); > > $offx=(8/160)*GetImageWidth($fileID); > > $offy=(1/2)*GetImageHeight($fileID); > > > > ImageTTFText ($im, $siz, 0, $offx, $offy, $red, "cour.ttf", > > "PROOF"); > > > > Works fine if I just put "$siz=72;" etc > > > > - seb > > > > -----Original Message----- > > From: Tribun [mailto:mail@tribun.de] > > Sent: 16 August 2001 08:30 > > To: php-general@lists.php.net > > Subject: [PHP] .htaccess username > > > > > > ...hmmm, I would guess there is a way, but I dont know why... > > > > Can I read out the active username, which has just logged in through a > > .htaccess authentication??? > > > > Like the access data.. > > user: patrick > > pass: linux > > > > can PHP reads out the usersname "patrick" ?? > > > > (and if ,... how? ;) > > > > 10x 4 U'r time. > > > > Patrick > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > >

« previous php.general (#63913) next »