farout Posted May 28, 2006 Share Posted May 28, 2006 hi..hmm dont have any idea printing in php...got this sample code printing in pdf but theres an error on iterror in pdf_new() ..something with pdflib... what will i do? or any other way in printing... Quote Link to comment https://forums.phpfreaks.com/topic/10646-need-help-in-printing/ Share on other sites More sharing options...
perezf Posted May 28, 2006 Share Posted May 28, 2006 What are you trying to accomplish Quote Link to comment https://forums.phpfreaks.com/topic/10646-need-help-in-printing/#findComment-39717 Share on other sites More sharing options...
farout Posted May 28, 2006 Author Share Posted May 28, 2006 pdf created in php .....like the "hello world" be put in pdf using php Quote Link to comment https://forums.phpfreaks.com/topic/10646-need-help-in-printing/#findComment-39730 Share on other sites More sharing options...
AndyB Posted May 28, 2006 Share Posted May 28, 2006 We can't help with the minimal information you've provided. The best place to start would be to read the documentation on pdflib/pdf class you're using.If/when you get an error, please post the [b]complete[/b] error message you get. Quote Link to comment https://forums.phpfreaks.com/topic/10646-need-help-in-printing/#findComment-39737 Share on other sites More sharing options...
farout Posted May 28, 2006 Author Share Posted May 28, 2006 ok...heres the error message...Fatal error: Call to undefined function: pdf_new() in /home/daxavl/public_html/testing/pdf2.php on line 2 Quote Link to comment https://forums.phpfreaks.com/topic/10646-need-help-in-printing/#findComment-39757 Share on other sites More sharing options...
AndyB Posted May 28, 2006 Share Posted May 28, 2006 Have you read [a href=\"http://ca.php.net/pdf\" target=\"_blank\"]the php manual[/a]'s page about PDF functions? One thing that jumps out is the very first example which refers to the function name as PDF_new not pdf_new. Maybe your problem's as simple as case sensitivity. Quote Link to comment https://forums.phpfreaks.com/topic/10646-need-help-in-printing/#findComment-39772 Share on other sites More sharing options...
farout Posted May 29, 2006 Author Share Posted May 29, 2006 have change pdf_new to PDF_new and still got the same error...how can i install the pdflib to the hosting server?....sorry for being so noob :D Quote Link to comment https://forums.phpfreaks.com/topic/10646-need-help-in-printing/#findComment-39841 Share on other sites More sharing options...
farout Posted May 30, 2006 Author Share Posted May 30, 2006 is there any other way print a report using php? Quote Link to comment https://forums.phpfreaks.com/topic/10646-need-help-in-printing/#findComment-40157 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.