Skip to content
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

exec a php string in go #7

Closed
xulei8 opened this issue Nov 7, 2015 · 2 comments
Closed

exec a php string in go #7

xulei8 opened this issue Nov 7, 2015 · 2 comments

Comments

@xulei8
Copy link

xulei8 commented Nov 7, 2015

we need to exec a php string in golang ,and retrun the result .

@deuill
Copy link
Owner

deuill commented Nov 11, 2015

This is already possible using Context.Exec or Context.Eval, depending on whether you need to execute a file or a string.

Any output returned is written to the io.Writer passed to the context.New function. Additionally, Context.Eval can also return a value.Value, depending on whether the string returns anything.

Maybe there's some functionality you need that's missing here?

@deuill
Copy link
Owner

deuill commented Dec 12, 2015

Closing this as already implemented.

@deuill deuill closed this as completed Dec 12, 2015
borancar pushed a commit to borancar/go-php that referenced this issue Dec 1, 2019
feature/eventhubs-logging - Adding more fields to log object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants