-1

http://www.videodorm.org/get_video.php?video=155676 I had a question about the link above. If you view the source their is absolutly NO html. I was wondering how they load a video file with just php. I know that the video id in the url has something to do with it, but could someone explain to me how this works?

2 Answers 2

2

PHP is a server side script which means it can run processes, download files or initiate header redirections without outputting any HTML.

There is actually HTML however it is all printed or echoes using PHP commands (http://php.net/manual/en/function.echo.php)

Depending on the browser you can view the created DOM source using developer tools. In Firefox you can bring this up with Ctrl+Shift+I

Sign up to request clarification or add additional context in comments.

Comments

1

The reason you don't see any HTML in the page source is that the PHP script is likely outputting the video file directly to the browser, rather than generating an HTML page. This is a common approach for serving video content, as it allows for more efficient and flexible video playback.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.