I'm trying to search through an array created by file (), which will have been a website, for example:
$lines = file(http://media.putfile.com/Young-Cats-Play-fighting);
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?