0

Can you execute, say a PHP script from a stored procedure in a MySQL database? Or are you limited purely to internal / custom database functions?

2 Answers 2

2

First question : No

Second question : Depends

mysql> \! php -r "echo 1;";
1    "> /* <-- results from php */

However, I don't think is advisable to this ...

Sign up to request clarification or add additional context in comments.

Comments

1

I dont believe you can do that, but as you know you can execute a stored procedure from PHP. But even if its possible, I wouldn't do it. For some reason it seems like you're trying to solve your problem the wrong way.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.