The issue is:
A SIMPLE DIPLAY FOR MP3 TAGS EMBEDDED IN THE WEB PAGE
a lot of person like php and flash... mierda...
I try to put a perl script INTO a php script called from a flash movie.
I make it for a Internet Radio that need something that diplay the current song
I know is something really strange but you can see the result at
.:http://recipient.cc:.
Is the box in the left that call the mp3 tags from the file. For the code i use mp3::Info.... Is realy simple, because in the current file you can find the path for the mp3 song


PERL/QUICKTIME get_tag
#!/usr/bin/perl #use strict; use warnings; use MP3::Info; my $file=$ARGV[0]; open (CURRENT, "$file") or die "can't open file"; my $line=<CURRENT>; chomp $line; $line=~s/u=//; #print "FILE CURRENT:\n",$line,"\n"; close (CURRENT); my $tag = get_mp3tag ($line, ID3v2); print "AUTORE=",$tag->{ARTIST},"&ALBUM=",$tag->{ALBUM},"&BRANO=",$tag- +>{TITLE};
Realy simple you can see... it just take the file, read with the module Mp3::Info, and give a string with print


PHP Here is the code of the php file called current.php
This line call the perl script and take a string.
<? system ("/path/to/script/mp3tagfinder.pl".escapeshellarg('/path/to/har +d/link/file/current')); ?>


Flash
Flash take the variabile from the php script with the function: load_vars
If you want, you can see it working at the radio ( CURRENT TEST)
So... it is all. Please post comments, i'm realy newbye of perl.

In reply to Flash and perl by tucano

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.