I
I
Ilya Matviychuk2022-02-24 18:51:47
AJAX
Ilya Matviychuk, 2022-02-24 18:51:47

How to get xls file from php?

Hello. I have a js library that takes a file from xls and parses it. I want to receive the ixel file directly from the university website. Through ajax I access php, in which

$response = $_GET['https://www.sevsu.ru/images/raspis/2021-2022/2021/2%20SEMESTR/IITUTS/IITUTS_1kurs_24_02.xls'];
    echo  $response;

but I don't get anything. Please tell me how to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2022-02-24
@sHinE

$response = file_get_contents('https://www.sevsu.ru/images/raspis/2021-2022/2021/2%20SEMESTR/IITUTS/IITUTS_1kurs_24_02.xls');

This is how you can get the contents of a file from another server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question