-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error: Class 'PDFMerger' not found in /www/wwwroot/mysite/myokyawhtun/sample.php on line 5 #38
Comments
I suppose you are |
'PDFMerger.php' is in the same directory with sample.php, |
Do this:
on sample.php. Write that on the top of the file |
thank you! your advice works! |
You're welcome. For the subsequent Error, put a backslash before the class name TCPDI to make it a qualified name, like so:
Do that for any subsequent Class not found error. |
Problem solved, thank you all guys. |
Nice, works fine. Had a lot of trouble before finding this simple solution. Thank you! |
Thank you so much @aderahenry . The code works perfectly. |
@aderahenry thank you very much |
`use PDFMerger\PDFMerger; $pdf = new PDFMerger();` oh,i am sorry,how can i do?i used the code,but the error still appear |
As @aderahenry wrote... |
Fatal error: Uncaught Error: Class 'PDFMerger' not found in C:\xampp\htdocs\pdf\index.php:17 Stack trace: #0 {main} thrown in C:\xampp\htdocs\pdf\index.php on line 17 hey guys what cause this error ill be happy is you will help with this error |
@manduzu can you try like what neocake wrote before? use PDFMerger\PDFMerger;
require_once 'PDFMerger.php';
$pdf = new PDFMerger(); |
hi guys,
my page always die in fatal error:
could anyone help me ?
thanks!
The text was updated successfully, but these errors were encountered: