--- In [email protected], "aceoohay" <[EMAIL PROTECTED]> wrote:
>
> The answer to life, the universe and everything is 42.
> 
> Would you be so kind as to share a bit more information with the 
> unwashed masses?
> 
> Paul
> --- In [email protected], "Alex Harui" <aharui@> wrote:
> >
> > The workaround is a proxy server.
> > 
> >  
> > 
> > ________________________________

Paul,here's a simple proxy script example in php:

<?php

    if(isset($_GET['file'])) {
        // Use preg_match to do simple validation on the url,
        // session, etc... Optional of course.
        if(preg_match("INSERT PATTERN HERE", $_GET['file'])) {
            readfile($_GET['file']);
        }
    }
?>


In flex, the url to the yahoo image would then be something like:
http://localhost/some_proxy_script.php?
file=http://www.yahoo.com/somefile.jpg


Credit goes to Doug McCune.

Reply via email to