D
D
DorF LorS2021-11-30 12:17:26
PHP
DorF LorS, 2021-11-30 12:17:26

What is better to use for api call JS or PHP?

I have an API request that gives information by IP. For example, I have a list of IPs and when I click on one IP, a modal window opens and displays information there using the API. That is, in this process, we do not touch the base. I have an api request in PHP and send the response to JS for rendering. If there is a big difference api request in PHP | JS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ipatiev, 2021-11-30
@Fockker

if no authorization or tokens are needed for the call, then of course in JS
in all other cases of course in PHP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question