Jump to content

Eckstra

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Eckstra's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks Crayon Violent, with a few small changes that worked perfectly. The problem now is forcing the file to be downloaded rather than streamed. I can't change the .htaccess to force files to be downloaded, because they're not being hosted locally, I cant seem to get it to work by playing around with the headers, and I'm not willing to just display the link as text, because it might encourage users to hotlink to the video rather than download it, and I'd like to keep things as simple for the user as possible, some might not understand "right click save target as". Whever I try and change the headers I get the error Warning: Cannot modify header information - headers already sent by (output started at /home/blah/test5.php:13) in /home/blah/test5.php on line 17 Can anyone help?
  2. Thanks for the reply redarrow. Getting hold of the HTML code isnt a problem, it's getting the script to find the URL to the video file that I cant figure out how to do.
  3. Hey everyone. I'm trying to search through an array created by file (), which will have been a website, for example: [code] $lines = file(http://media.putfile.com/Young-Cats-Play-fighting); [/code] so each line of the source code from this page on putfile is stored seperately in the array. The whole idea is for the PHP script to search the source code for the URL to the video file. I would have thought the easiest way would be to use array_search to search the array for wmv, mpg, avi or any other video file extensions, and then go from there. However when I do this the search comes out with no results, possibly because "wmv" or "avi" would only one part of a whole line? Could anyone help me out?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.