Need help to make a little php code anyone willing to help than please reply to this post and than we will start

Recommended Answers

All 7 Replies

as i am not a php developer so i don't know how to make this code so help required.....

<object type="application/x-shockwave-flash" style="width:470px;height:320px;" 

data="http://www.example.com/swf/[php code]">
		<param name="movie" value="http://www.example.com/swf/[php code]" />
		<param name="quality" value="very high" />
		<param name="wmode" value="transparent" />

		<param name="bgcolor" value="" />
		<param name="autoplay" value="true" />
		<param name="allownetworking" value="internal" />
		<param name="allowfullscreen" value="true" />

		<param name="allowscriptaccess" value="always" />
	</object>

let that this is a url
http://example.com/dm.php?code=xc3ezo
the code at the end of url [xc3ezo] i want it automatically replaces space in the above given code[php code] space in the above given code

<?php
$url = "http://www.example.com/swf/";
$url .= $url . $_GET["code"];
?>

<object type="application/x-shockwave-flash" style="width:470px;height:320px;" data="<?php echo $url; ?>">
<param name="movie" value="<?php echo $url; ?>" />
<param name="quality" value="very high" />
<param name="wmode" value="transparent" />

<param name="bgcolor" value="" />
<param name="autoplay" value="true" />
<param name="allownetworking" value="internal" />
<param name="allowfullscreen" value="true" />

<param name="allowscriptaccess" value="always" />
</object>

Kyle Hudson
Web Developer

Try this....

<object type="application/x-shockwave-flash" style="width:470px;height:320px;" 

data="http://www.example.com/swf/<?php echo $_GET['code']; ?>">
		<param name="movie" value="http://www.example.com/swf/<?php echo $_GET['code']; ?>" />
		<param name="quality" value="very high" />
		<param name="wmode" value="transparent" />

		<param name="bgcolor" value="" />
		<param name="autoplay" value="true" />
		<param name="allownetworking" value="internal" />
		<param name="allowfullscreen" value="true" />

		<param name="allowscriptaccess" value="always" />
	</object>

OR

echo '<object type="application/x-shockwave-flash" style="width:470px;height:320px;" 

data="http://www.example.com/swf/'.$_GET['code'].'">
		<param name="movie" value="http://www.example.com/swf/'.$_GET['code'].'" />
		<param name="quality" value="very high" />
		<param name="wmode" value="transparent" />

		<param name="bgcolor" value="" />
		<param name="autoplay" value="true" />
		<param name="allownetworking" value="internal" />
		<param name="allowfullscreen" value="true" />

		<param name="allowscriptaccess" value="always" />
	</object>';

my code is much more effective, why would you wan't to echo the whole string?

diskhub,

While i was writing the code in between u already posted your code.

also i provided two options , aryan u can use any of the code according to your requirement.

diskhub,

While i was writing the code in between u already posted your code.

also i provided two options , aryan u can use any of the code according to your requirement.

Fair enough :P

Thanks Guys I really Appreciate Your work coz in future i will me here for more Help,,, Thanks Again

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.