# Php image url to flash movie

**URL:** https://forum.kirupa.com/t/php-image-url-to-flash-movie/220865
**Category:** Uncategorized
**Created:** [March 30, 2007, 12:06am UTC](https://forum.kirupa.com/t/php-image-url-to-flash-movie/220865 "2007-03-30T00:06:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BigSerb](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@BigSerb](https://forum.kirupa.com/u/BigSerb)
#### Post date: [March 30, 2007, 12:06am UTC](https://forum.kirupa.com/t/php-image-url-to-flash-movie/220865/1 "2007-03-30T00:06:05Z")

</div>

How would I pass the image url from the php script below, so that I can have the image load into a movie clip in Flash? I’m not that great with AS, so please be as detailed if possible.

\<?php

$id=“12345678”; //member id

$u= “[http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=$id](http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=%24id)”;

$t = join("",file("$u"));

$r = ‘/ctl00\_Main\_ctl00\_UserBasicInformation1\_hlDefaultImage" ._?"\>\<img src="(._?)"/’;

$t = ereg\_replace("  
", “”, $t);

preg\_match\_all($r, $t, $m);

$img=$m[1][0];

echo “\<img src =”$img"\>";

?\>
