Fatal Error Call To Undefined Function Printer_open
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta printer_open php ini Discuss the workings and policies of this site About Us Learn more
Php Printer_open Not Working
about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack
Printer_open In Php Examples
Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you,
Fatal Error Call To Undefined Function Sqlite_open
helping each other. Join them; it only takes a minute: Sign up Fatal error: Call to undefined function printer_open() up vote 1 down vote favorite I'm trying to print some string using PHP, i'm using the PHP print functions: $printer = ("HP LaserJet Professional P1102"); $handler= printer_open($printer); $content="Test Content"; printer_write($handler, $content); printer_close($handler); but I got that error : fatal error call to undefined function mcrypt_module_open Fatal error: Call to undefined function printer_open() in C:\xampp\htdocs\print.php on line 12 after googling it i found that i must add the php_printer.dll to the extensions file in php and add it's extension to the php.ini file, then restarting the server services, all of that accomplished but still getting that error. p.s. I've tried it on WAMP and XAMPP php printing xampp wamp htdocs share|improve this question asked Oct 3 '13 at 12:15 Refaat 571211 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote I think solution would be extension location.php_printer extension should be stored in c:\xampp\php\ext and not in c:\xampp\php. So move it to the ext-folder, and restart Apache. Can you look into the error_log, which tells you, if it fails to load the module. You should also run a phpinfo(), which shows up all loaded modules, you must find the printer extensions there. I hope it may resolve your issue. share|improve this answer answered Oct 3 '13 at 12:28 geekdev 756613
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company fatal error call to undefined function mcrypt_encrypt Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs fatal error call to undefined function form_open() in codeigniter Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, fatal error call to undefined function mcrypt_module_open() magento just like you, helping each other. Join them; it only takes a minute: Sign up “Call to undefined function printer_open” [duplicate] up vote 0 down vote favorite This question already has an answer here: Where to find http://stackoverflow.com/questions/19158990/fatal-error-call-to-undefined-function-printer-open php_printer.dll? 3 answers I try to create a page that will print directly my images in php. I made on the internet and it seems that there are functions in php that can do that but I can not ENTERING these functions because apparently I do not have the extension installed php_printer now I ask for help to install this extension. php printing share|improve this question edited May 12 '14 at 19:19 user2864740 35.2k43779 asked http://stackoverflow.com/questions/23614318/call-to-undefined-function-printer-open May 12 '14 at 16:32 djodev 36 marked as duplicate by bwoebi, NikiC May 12 '14 at 19:08 This question was marked as an exact duplicate of an existing question. add a comment| 2 Answers 2 active oldest votes up vote 0 down vote Got it: Try this link: http://downloads.php.net/pierre/ and check these lines: [ ] php_printer-cvs-20081215-5.2.8-nts-Win32.zip 15-Dec-2008 15:17 11K md5: b356746c05a7045c48745ad78b04ce90 [ ] php_printer-svn-20100205-5.3-nts-vc9-x86.zip 05-Feb-2010 19:50 13K md5: 9624bd00740f6aeafff316843fa60324 [ ] php_printer-svn-20100205-5.3-vc9-x86.zip 05-Feb-2010 19:51 13K md5: 487b4e062a098b7c19dabc069101fbaf [ ] php_printer-svn20100319-5.3-nts-vc6-x86.zip 19-Mar-2010 14:43 11K md5: 59d2596447b096c9d2e50a4b34de32e3 [ ] php_printer-svn20100319-5.3-vc6-x86.zip 19-Mar-2010 14:42 11K md5: 2a313c323e9f5bbf20606c97baa6a931 share|improve this answer answered May 12 '14 at 19:08 romulos 23518 thank you very much I had an extension that corresponds to my version, but I have another problem because it tells me that the connection has been established with the printer but it does not print. I have a blank page –djodev May 12 '14 at 19:44 No problem man.. Well can it be your source code? What is the "original" message it php returns to you? –romulos May 12 '14 at 19:47 this code: printer_write ($ handle, 'texta to print'); returns true to me but I want to put the change in place of text image could I know how to do? –djodev May 12 '14 at 20:00
code: when i run get below error message https://www.daniweb.com/programming/web-development/threads/427045/php-printer-function-not-working : Fatal error: Call to undefined function: printer_open()... What could be wrong? function php printer sri. 18 posts since Jun 2012 Community Member 4Contributors 8Replies 30Views 4 YearsDiscussion http://www.tek-tips.com/viewthread.cfm?qid=941740 Span 3 Years Ago Last Post by akgreen 2 Featured Reply cereal 1,078 4 Years Ago You have to install it from PECL: http://www.php.net/manual/en/printer.installation.php And it seems fatal error to be Windows only. 0 Discussion Starter sri. 4 Years Ago thanks cereal for your advice i download the file php_printer.dll and put it in "ext" folder and after it i made some changes in php.ini i add the line ;extension=php_printer.dll in php.ini but i still got the error.... my code is $handle = printer_open(); fatal error call $handle = printer_write($handle, "Text to print"); printer_close($handle); and the error which i got ... Fatal error: Call to undefined function printer_open() in i need help on it....plz thanks in advance 1 Featured Reply cereal 1,078 4 Years Ago Without the semicolon otherwise you comment the line and it's not considered: extension=php_printer.dll After you save the file reload the server and it should work. 0 Discussion Starter sri. 4 Years Ago i removed semicolon and then refresh the server while i got some error Error: Php Startup: printer:unable to initialize module Module Complied with module API=20060613 PHP complied with module API=20090626 these option need to match Thanks cereal for your guidance 2 Featured Reply cereal 1,078 4 Years Ago I cannot help you much on this, I've seen this problem when using two different versions of PHP on the same box, but in linux is simple to solve: just change the path before using phpize... in windows, since you are placing the dll, try
Join INTELLIGENT WORK FORUMSFOR COMPUTER PROFESSIONALS Log In Come Join Us! Are you aComputer / IT professional?Join Tek-Tips Forums! Talk With Other Members Be Notified Of ResponsesTo Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, It's Free! Join Us! *Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Tek-Tips Posting Policies Jobs Jobs from Indeed What: Where: jobs by Link To This Forum! Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.Just copy and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. PHP Forum at Tek-Tips HomeForumsProgrammersWeb DevelopmentPHP Forum Cannot use printer_open() function thread434-941740 Forum Search FAQs Links MVPs Cannot use printer_open() function Cannot use printer_open() function medic (Programmer) (OP) 27 Oct 04 14:24 I have this code:All I get is this error message:CODEFatal error: Call to undefined function: printer_open()...What could be wrong? RE: Cannot use printer_open() function sleipnir214 (Programmer) 27 Oct 04 15:01 Just to ask the dumb question...Are you running PHP on a Win32 machine?The printer_* family of functions is only available on Win32. Want the best answers? Ask the best questions!TANSTAAFL!! RE: Cannot use printer_open() function sleipnir214 (Programmer) 27 Oct 04 15:03 Also according to the online manual, the printer_* family of functions are not bundled with PHP, but are a PECL extension. Want the best answers? Ask the best questions!TANSTAAFL!! RE: Cannot use printer_open() function medic (Programmer) (OP) 27 Oct 04 16:06 Yep, Win32 machine. I got PHP 4.3.9 which include the required DLL for the printer functions. PHP 5 is the one which doesn't come bundled with it.Any other idea what the cause of the problem is? RE: Cannot use printer_open() function sleipnir214 (Programmer) 27 Oct 04 16:14 To ask the next dump question...Have you enabled that extension dll in php.ini? Want the best answers? Ask the best questions!TANSTAAFL!! RE: Cannot use printer_open() function medic (Programmer) (OP) 27 Oct 04 17:16 Yes, I did (and it's driving me crazy). :( RE: Cannot