Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding a flash file 1

Status
Not open for further replies.

chris921

Technical User
Mar 9, 2004
82
GB
I wish to have a perl script that when activated (From a checkbox in a form) identifies if a webpage (also entered into the form) contains a flash movie.

Is this possible, and if so, how do I do it? Perl code if possible, thanks.
 
this might help a bit...

use LWP::Simple;

print "url:
chomp ($url = <STDIN>);

$url = "
$url_result = get ($url);


if ($url_result =~ m|"([^"]+.swf)"|) {
print "HTML contains Flash content - $1\n";
} else {
print "HTML does not appear to contain Flash content\n";
}


Kind Regards
Duncan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top