A
A
Artem Prokhorov2021-06-28 14:36:00
Vue.js
Artem Prokhorov, 2021-06-28 14:36:00

Is it possible to run a php file in Vue without starting an additional server?

I added a publicphp file to access it and get some data, but it fetchreturns only a text format, just the data is displayed in text, json is not transmitted. Is it possible at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-06-28
@kotcich

No, php is executed before the page leaves in response to a request to the server. Executes it (php file) server. The browser can't do that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question