Results 1 to 17 of 17
Thread: embedding files
-
10-28-2006, 10:29 PM #1Junior Guru Wannabe
- Join Date
- Feb 2006
- Posts
- 71
embedding files
I'd like to embed a video for viewing on a website. I'm wondering if there's a way to prevent users from obtaining the source/ location of the video and downloading it to disk?
Essentially, I suppose I'm trying to hide the source of a video file
-
10-28-2006, 10:40 PM #2Web Hosting Master
- Join Date
- Mar 2006
- Posts
- 984
Best way to do so would be to consider encrypt your PHP files with Ioncube / Sourceguardian. This way, even if downloaded to their PC (if it's even possible since I sincerely doubt that the encrypted modules will even let users to download encrypted web files on their computer), they will probably fail to load it due to intentional missing components once downloaded (since the rest pretty much sticks from the FTP's / server core's end).
-
10-28-2006, 10:56 PM #3Web Hosting Master
- Join Date
- Nov 2001
- Location
- Vancouver
- Posts
- 2,422
horizon, read the question more closely.
compjab is trying to find a method which prevents someone from accesing a media file directly or knowing where the location of the file is. This has nothing to do with PHP (note compjab didn't say that the application even used PHP) thus "encrypt your PHP files..." is not an appropriate answer. compjab used the word "source" in a completely different context.“Even those who arrange and design shrubberies are under
considerable economic stress at this period in history.”
-
10-28-2006, 10:57 PM #4Junior Guru Wannabe
- Join Date
- Feb 2006
- Posts
- 71
I wonder if PHP has a method for embedding videos?
On another note, for which I'm not necessarily seeking a response, I thought PHP code within <?php ?> couldn't be viewed by usersLast edited by compjab; 10-28-2006 at 11:01 PM.
-
10-29-2006, 07:40 AM #5Web Hosting Master
- Join Date
- Mar 2006
- Posts
- 984
I wonder if PHP has a method for embedding videos?
-
10-29-2006, 09:53 AM #6Junior Guru Wannabe
- Join Date
- Feb 2006
- Posts
- 71
Originally Posted by horizon
The objective here is to secure/hide the source/location of video files, not PHP code or anything of that sort.
-
10-29-2006, 10:02 AM #7Web Hosting Master
- Join Date
- Sep 2005
- Posts
- 551
Originally Posted by compjab
-
10-29-2006, 10:10 AM #8Web Hosting Master
- Join Date
- Mar 2006
- Posts
- 984
It is not possible to hide the embedded video from the source code because the browser could not play it then.
-
10-29-2006, 11:57 AM #9Junior Guru Wannabe
- Join Date
- Jul 2006
- Posts
- 95
It would be like what most people do for their picture files. You can write a simple php file to output binary content of video, and all your links to this video are replaced by this php file.
-
10-29-2006, 12:11 PM #10Web Hosting Master
- Join Date
- Mar 2006
- Posts
- 984
It's called queries that points out to the original target files.
-
10-29-2006, 02:53 PM #11Web Hosting Evangelist
- Join Date
- Apr 2005
- Posts
- 522
Originally Posted by horizon
Ok, if the HTML source is encrypted by IonCube / Zend / SourceGuardian, please explain how te browser decryps it.
All this time poor me thought that forementioned encrypt source files, not the output itself.
horizon, you truly impress me. You have absolutely no idea what you're doing, but still have the nerve to act as a teacher to other people.
-
10-29-2006, 03:04 PM #12Web Hosting Master
- Join Date
- Mar 2006
- Posts
- 984
PHP Code:Ok, if the HTML source is encrypted by IonCube / Zend / SourceGuardian, please explain how te browser decryps it.
All this time poor me thought that forementioned encrypt source files, not the output itself.
-
10-29-2006, 04:11 PM #13Web Hosting Evangelist
- Join Date
- Apr 2005
- Posts
- 522
I actually do use IonCube and I know what I'm talking about. So much for useless comments. Encrypting source php files is completely different thing to encrypting html output. I suggest getting some info before going into discussions you have no clue about.
-
10-29-2006, 05:49 PM #14Web Hosting Master
- Join Date
- Nov 2001
- Location
- Vancouver
- Posts
- 2,422
Originally Posted by horizon
Bottom line: if a video or audio or html file is to be rendered by technology *running on the client* (lets use mplayer or RealPlayer or MS Media Player as examples), then the URL to that resource must be passed to the client in a form it can recognize.“Even those who arrange and design shrubberies are under
considerable economic stress at this period in history.”
-
10-29-2006, 06:12 PM #15Web Hosting Master
- Join Date
- Sep 2005
- Posts
- 551
Originally Posted by horizon
-
10-29-2006, 06:43 PM #16Web Hosting Master
- Join Date
- Mar 2006
- Posts
- 984
lets use mplayer or RealPlayer or MS Media Player as examples), then the URL to that resource must be passed to the client in a form it can recognize
-
10-29-2006, 06:55 PM #17Web Hosting Master
- Join Date
- Nov 2001
- Location
- Vancouver
- Posts
- 2,422
Originally Posted by horizon
It would be good for you to understand more about what http does and does not do, and how client applications (the browser is a client too) interact.
I've been singling you out today for commentary because you are passing off your opinions and assumptions and wild guesses as certain knowledge and you are taking others way off base.
I'm sure you mean well but you do your reputation no good, nor are you actually helping people by passing misinformation around.
no wonder why programmers are using queries to load video files these days.
Do... More thinking; more reading real documentation, not the opinions of others; more experimentation.
Don't... venture an opinion about something until you've actually done your homework.“Even those who arrange and design shrubberies are under
considerable economic stress at this period in history.”