Convert to int...?

From: Date: Wed, 22 Aug 2001 15:07:04 +0000
Subject: Convert to int...?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63908@lists.php.net to get a copy of this message
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

« previous php.general (#63908) next »