DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /AppServ/www/umedia3/inc/pdf/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/umedia3/inc/pdf/testallfont.php
<?
;
 include("../../inc/config.inc.php");
 ////////////
load_pdf_ini("barcode-singlecolumn");
//////////////

$pdf=new PDF("P","pt","A4");
$pdf->AddPage();
		$pdf->Cell(490,155,"" ,$border,1);
$txt="ทดสอบภาษาไทย สะระเอีย ด์ร์ก์";
if ($handle = opendir('./font/')) {

    /* This is the correct way to loop over the directory. */
	$c=0;
    while (false !== ($file = readdir($handle))) {
		$t=split('\.',$file);
		if (strtoupper($t[count($t)-1])=="PHP") {
			$c++;
			if ($c<10) {
				$fontname=$t[0];
				//echo "<B>".$t[count($t)-1]."</B>$file<BR>\n";
				$pdf->AddFont("$fontname",'',"$file");
				$pdf->SetFont("$fontname",'',25);
				$pdf->Cell(500,40," $fontname $file $txt" ,1,1);
			}
		}
    }
} else {
	echo "nofontdir";
}
	$pdf->Output();

?>

Anon7 - 2022
AnonSec Team