Run PHP files not in project

I can use "Run/ Run..." to execute the PHP file I'm currently editing when it's part of project files or when it's a scratch file but not when it's located anywhere else.

Is that intentional?

I currently right click on the file tab, select "Open in Terminal" and type "php foo.php" (using Tab to auto-complete). Is there a better workaround?

0
2 comments

Is there a better workaround?

It doesn't seem so, looks like generic files open from somewhere else are not considered runnable. Please create a usability issue if that's crucial for you: https://youtrack.jetbrains.com/newIssue?project=WI

1

Thank you. I've just filed https://youtrack.jetbrains.com/issue/WI-43310?project=WI. I'm not sure how to tag it as "usability" or "low priority"; I guess I cannot.

0

Please sign in to leave a comment.