-
Notifications
You must be signed in to change notification settings - Fork 289
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
What am i doing wrong? #70
Comments
I got it! One of the included files was returning an extra space and screwing up the headers and output. In such a case, the native PHP error is expected... something like headers already sent or something :-( Please include it to avoid headaches for other unsuspecting newbies like me :-) |
Unfortunately this is hard to provide a better error message there since this is more a PHP issue, that is even more likely to happen if you use closing tag ?> with extra space after |
I installed via composer
build(); header('Content-type: image/jpeg'); $builder->output(); On IE , in the console, i see DOM7009: Unable to decode image at URL: '<>' with MIME: 'image/jpeg'. In firefox, in the main browser window, i see "the image <<>> cannot be displayed as it contains errors If i remove the header line, i do see a lot of junk chars and a jpeg header being sent out. So it does look like i have the relevant libraries for PHP installed $my_dir is outside my web directory, but i don't think that should matter, right? Thanks in advance for any help!!!!The text was updated successfully, but these errors were encountered: