Answer the question
In order to leave comments, you need to log in
How to upload video from the second server through PHP script?
Hello! There are 2 servers: the site is on the first one, the files are stored on the second one. For example, I have files on the second server called
video.mp4 server by taking the name of the desired file in the name parameter. Tried by returning script headers
header("Content-Type:video/mp4");
header("X-Accel-Redirect:site.ru/video/player.mp4");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question