PHP Classes

Neep Help

Recommend this page to a friend!

      classPdf  >  All threads  >  Neep Help  >  (Un) Subscribe thread alerts  
Subject:Neep Help
Summary:doesnot begin %pdf
Messages:1
Author:Shashank
Date:2009-10-10 13:58:12
 

  1. Neep Help   Reply   Report abuse  
Picture of Shashank Shashank - 2009-10-10 13:58:12
---------------------------------------------------------------------------
<?php
include ('class.ezpdf.php');
$pdf =& new Cezpdf();
$pdf->selectFont('./fonts/Helvetica.afm');
$pdf->ezText('Hello World!',50);
$pdf->ezStream();
?>
---------------------------------------------------------------------------

I have wrote above code and saved it as "test.php" now when i run test.php from browser, it doesn't work and pops up with an error message: File does not begins with '%PDF-'.I am using WAMP server on Vista home basic.
This is my serve details
Server Configuration

Apache Version :
\2.2.11\
PHP Version :
\5.3.0\
Loaded Extensions :

* Core
* bcmath
* calendar
* com_dotnet
* ctype
* date
* ereg
* filter
* ftp
* hash
* iconv
* json
* mcrypt
* mysqlnd
* odbc
* pcre
* Reflection
* session
* SPL
* standard
* tokenizer
* zip
* zlib
* libxml
* dom
* PDO
* Phar
* SimpleXML
* wddx
* xml
* xmlreader
* xmlwriter
* apache2handler
* gd
* mbstring
* mysql
* mysqli
* pdo_mysql
* pdo_sqlite
* mhash

MySQL Version :
\5.1.36\

---------------------------------------------------------------------------
phpinfo()
---------------------------------------------------------------------------


PHP Version 5.3.0

System Windows NT APACH3-PC 6.0 build 6000 (Windows Vista Home Basic Edition) i586

Build Date Jun 29 2009 21:23:30
Compiler MSVC6 (Visual C++ 6.0)
Architecture x86
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--with-enchant=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File E:\wamp\bin\apache\Apache2.2.11\bin\php.ini
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
PHP API 20090626
PHP Extension 20090626
Zend Extension 220090626
Zend Extension Build API220090626,TS,VC6
PHP Extension Build API20090626,TS,VC6
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
Registered PHP Streams php, file, glob, data, http, ftp, zip, compress.zlib, phar
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*

 
For more information send a message to info at phpclasses dot org.