Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sigamy

macrumors 65816
Original poster
I'm switching from old embed tags to Apple's JavaScript for Quicktime.

I have it working if I hard code the full path to my movie file. I can't seem to get it working if I use PHP variables.

This works:
<script language="JavaScript" type="text/javascript">
QT_WriteOBJECT('http://www.mysite.com/media_files/Joe/movie1.m4v','300','256','','AUTOPLAY', 'True','SCALE','Aspect');
</script>

This does not. What am I missing? I'm trying to send the User ID and the movie file in as variables.

<script language="JavaScript" type="text/javascript">
QT_WriteOBJECT('http://www.mysite.com/media_files/'.<?$uid?>.'/'.<?$row['media_tra_name']?>,'300','256','','AUTOPLAY', 'True','SCALE','Aspect');
</script>
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.