-
Notifications
You must be signed in to change notification settings - Fork 308
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
Loading the .phar from a web application #269
Comments
Including .phar is described in Option 2 | InstallingAndVerifying.md |
Yes, I did. The problem is that when using require_once(), everything outside of the php tags (i.e. the first line) is output as HTML |
This is a bug. @glensc do you know of an option to make box not generate this line? Or do I have to add a command to the Makefile that strips that line out? |
yes, box-project/box2#88 |
and looks like i already mentioned this to you: |
see #270 |
@glensc Sorry I missed that before! Thanks for fixing it. I'll close this after I release |
Done! Thanks very much @glensc! |
I guess this is a real noob question, but I have been running into some problems trying to use the library with my website.
When I include the .phar archive into a web application, the first line ("#!/usr/bin/env php") is interpreted as HTML and output to every page I use the library in.
Editing the .phar to remove the first line obviously breaks the signature and so far I haven't found a way to avoid outputting the first line every time the .phar is loaded.
How do I correctly use the library in this scenario?
The text was updated successfully, but these errors were encountered: