I attempting to get a flash file up in php. I'm incountering a parse error and the editor I'm using isn't giving me enough information to correct the situation.
<?php
'echo '<embed src="http://www.testing.com/test.swf" loop=false pluginspage=http://www.macromedia.com/shockwave/dow ... kwaveFlash type='application/x-shockwave- flash' width="460" height="200"></embed>'';
?>
If anyone could lead a fellow some help it would be very well...helpful. In the future I'd like to create a function to load a flash file. Thanks in advance.
Flash and PHP
Moderator: General Moderators
Try this one:
You needed to escape the single quotes surrounding your type= statement
Code: Select all
<?php
echo '<embed src="http://www.testing.com/test.swf" loop=false pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type=''application/x-shockwave- flash'' width="460" height="200"></embed>';
?>Well, I usually stick to http://www.php.net, here and my trusty PHP 4 Bible. If I can't find an answer in any of those places (which usually doesn't happen), I then start my searches until I do find an answer.
-
nightmatrix
- Forum Newbie
- Posts: 21
- Joined: Sun Jun 08, 2003 11:03 am
Hey here are some excellent PHP and Flash Tutorials this is where I got started learning PHP and Flash
http://www.sephiroth.it/tutorials/flashPHP/
if you want some recommended books I suggest
Foundation PHP for Flash and Advanced PHP for Flash
anyway good luck
http://www.sephiroth.it/tutorials/flashPHP/
if you want some recommended books I suggest
Foundation PHP for Flash and Advanced PHP for Flash
anyway good luck
I'm getting another parse error on this line....please inform me of what I'm doing wrong...Thanks..
<?php echo '<embed src="'(DIR_WS_IMAGES . $category['categories_flash'])'" loop=false pluginspage=http://www.macromedia.com/shockwave/dow ... kwaveFlash type=''application/x-shockwave- flash''></embed>';?>
<?php echo '<embed src="'(DIR_WS_IMAGES . $category['categories_flash'])'" loop=false pluginspage=http://www.macromedia.com/shockwave/dow ... kwaveFlash type=''application/x-shockwave- flash''></embed>';?>
What is this suppose to be doing?
(DIR_WS_IMAGES . $category['categories_flash'])
Is DIR_WS_IMAGES a variable that stores path information?
If so, you need the $ and you are concatenating improperly. Assuming that, it needs to be
(DIR_WS_IMAGES . $category['categories_flash'])
Is DIR_WS_IMAGES a variable that stores path information?
If so, you need the $ and you are concatenating improperly. Assuming that, it needs to be
Code: Select all
<?php
echo '<embed src="'.$DIR_WS_IMAGES.$category['categories_flash'].'" loop=false pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type=''application/x-shockwave- flash''></embed>';
?>