Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I think the title is explaining perfectly.
How I can deliver big REMOTE files to client with resume capability through PHP?
You likely wouldn't want to use PHP for that, since it's not really made for this kind of task.
For Resume capability, your script needs to be able to read and act properly upon the Range: HTTP request header the client sends, as well as correctly serve a Content-length: header at least.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I hope you are fine
I want to write a simple php code that the user cant download the movie like youtube site and can only see, I came across a series of results such as hls, ffmpeg, rtmp in my search, but I do not know which one is useful or has a library for php at all or not.
Thank you for your time.
It’s not possible. The server can not differentiate between “downloading” and “playing”.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
What's the difference between watching and downloading from say, YouTube, or just about any other website with the similar nature?
I'm curious if I could determine if someone is just watching the content or downloading it (through some plugin/application grabber) from the player I provided on the website I wanted to create.
Does data transfer from point a (host) to point b (client) differ from downloading and watching?
Unless you check the speed of transfer of file, I don't think even that will allow you to check if the user is downloading or viewing. Browsers usually download and buffer. Technically, this is impossible to detect.
The browser request is the same as buffering request or download request. Hence, it is not possible to detect.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
My php file online has permission settings 444 - ('readable' for everyone)
When I open the file in Firefox, it correctly only shows the output of the file (meaning things that are echoed or printed)
I want people to NOT EVER see the inside of the php file because it shows sensitive information. So - are there some people that are able to look into the inside of the php file?
Unless someone has access to the server then generally no.
There are ways to purposely make the source code visible however.
http://php.net/manual/en/function.show-source.php
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am trying to get the facebook cookie on my webpage, but I am being unabe to do this.
I tried this but it returned null.
Please give me the php script if you know.
You are trying to do the impossible.
You just can't read other websites cookies, you may just could read their headers though.
You could grab their headers like this.
<?php
file_get_contents('https://www.facebook.com');
var_dump($http_response_header);
That would be a huge security issue on both Facebook's end and the browser's end.
You should never be able to do that ever for any reason ever.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
So I'm kind of tossing an idea around in my head... is it feasible to write a webapp that asks for a user to input a snippet of code, and then compiles it remotely on a server, and returns the output back to the user?
feasible sure, you could definitely make this work from a technical point of view. but in terms of security, it sounds very dangerous.