Ninjakreborn Posted July 6, 2006 Share Posted July 6, 2006 I have my php script set up like this.<embed src="<?=$funnyurl?>" width="100" height="100"></embed>I am passing a php variable into, it connects but it's not playing, it shows a big question mark. Is there something else I need to do to get files to display. I need to pull the stuff from the database, and play it from the directory, I have a script set up, and it properly handles pictures, txt, and now it's time for music, and video? Link to comment https://forums.phpfreaks.com/topic/13840-question/ Share on other sites More sharing options...
hussain Posted July 6, 2006 Share Posted July 6, 2006 put semi colon after $funnyurl Link to comment https://forums.phpfreaks.com/topic/13840-question/#findComment-53826 Share on other sites More sharing options...
//Bliss Posted July 6, 2006 Share Posted July 6, 2006 <embed src="<?php echo $funnyurl; ?>" width="100" height="100"></embed>That should work. =] Link to comment https://forums.phpfreaks.com/topic/13840-question/#findComment-53827 Share on other sites More sharing options...
kenrbnsn Posted July 6, 2006 Share Posted July 6, 2006 The "<?=" is a shortcut for "<?php echo".You really should get used to not using short tags and this shortcut, since they will probably go away in PHP6.Ken Link to comment https://forums.phpfreaks.com/topic/13840-question/#findComment-53849 Share on other sites More sharing options...
Ninjakreborn Posted July 6, 2006 Author Share Posted July 6, 2006 What can I use in stead of the shortcut, it's not too late for me to change it all now. I just thought it was an easy way to insert stuff in xhtml without taking up too much room, what do you recommend. Link to comment https://forums.phpfreaks.com/topic/13840-question/#findComment-53858 Share on other sites More sharing options...
kenrbnsn Posted July 6, 2006 Share Posted July 6, 2006 As I said "<?=" is a shortcut for "<?php echo".Ken Link to comment https://forums.phpfreaks.com/topic/13840-question/#findComment-53869 Share on other sites More sharing options...
Ninjakreborn Posted July 6, 2006 Author Share Posted July 6, 2006 Ah so instead I would use <?php echo $funnyurl?> Link to comment https://forums.phpfreaks.com/topic/13840-question/#findComment-53874 Share on other sites More sharing options...
wildteen88 Posted July 6, 2006 Share Posted July 6, 2006 Yes that is correct also make sure you have a semi-colon before the closing ?> tag so its this:<?php echo $funnyurl; ?> Link to comment https://forums.phpfreaks.com/topic/13840-question/#findComment-53883 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.