Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 00:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[php]Variable in Objekt

Discussion on [php]Variable in Objekt within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 10
Join Date: Aug 2010
Posts: 2,814
Received Thanks: 466
[php]Variable in Objekt

Hallo,

Habe folgenden Code.

PHP Code:
<object type="application/x-shockwave-flash" height="378" width="620" id="live_embed_player_flash" data="http://de.twitch.tv/widgets/live_embed_player.swf?channel=$pagestream bgcolor="#000000">
<param name="allowFullScreen" value="true" />
<
param name="allowScriptAccess" value="always" />
<
param name="allowNetworking" value="all" />
<
param name="movie" value="http://de.twitch.tv/widgets/live_embed_player.swf" />
<
param name="flashvars" value="hostname=de.twitch.tv&channel=$pagestream&auto_play=false&start_volume=25" /></object
Es geht um das $pagestream in der ersten und letzten Zeile.
Der String "$pagestream" wird ausgegeben und nicht die Variable.
Wie kann ich das umgehen?

MfG ExChill
ExChill is offline  
Old 07/06/2013, 18:31   #2



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Mach es so:
PHP Code:
<object type="application/x-shockwave-flash" height="378" width="620" id="live_embed_player_flash" data="http://de.twitch.tv/widgets/live_embed_player.swf?channel=".$pagestream." bgcolor="#000000">
<param name="allowFullScreen" value="true" />
<
param name="allowScriptAccess" value="always" />
<
param name="allowNetworking" value="all" />
<
param name="movie" value="http://de.twitch.tv/widgets/live_embed_player.swf" />
<
param name="flashvars" value="hostname=de.twitch.tv&channel=".$pagestream."&auto_play=false&start_volume=25" /></object
Sedrika is offline  
Thanks
2 Users
Old 07/06/2013, 18:49   #3
 
elite*gold: 10
Join Date: Aug 2010
Posts: 2,814
Received Thanks: 466
Hab vergessen, dass das Ganze in php sein muss, damit die Variable überhaupt gefunden wird

Danach gings dann auch mit deiner Lösung
ExChill is offline  
Reply


Similar Threads Similar Threads
problem mit 3d objekt
10/25/2011 - Minecraft - 1 Replies
habe ich schon geschaft
Objekt einfügen???
06/03/2011 - Minecraft - 4 Replies
Hey Leute, ich habe mir ein Objekt (jmd hat es gebaut, die dateien kopiert und zum herunterladen ins netz gestellt) heruntergeladen und möchte nun das Objekt an einer bestimmten stelle platzieren. meine frage lautet: wo muss ich die dateien einfügen, und wie kann ich das objekt an einer bestimmten stelle platzieren?? thx im vorraus
Cost of accessing a casted variable vs. assigning the casted variable? (C#)
01/05/2011 - CO2 Programming - 5 Replies
I know that in unmanaged C++, casting is at compile-time, so it's better to avoid the assignment and simply access it for all instances. However, in C#, I have no idea since I'm pretty new to it.
Überprüfen ob Variable Eine Variable ist
10/16/2010 - AutoIt - 26 Replies
Hey leute ich wollte fragen ob/wie man überprüfen kann ob eine Variable eine Variable ist z.b. so $k = 1 $i = $k if $i = VARIABLE Then msgbox(0,'$i ist eine variable!!','') endif PS:Wp releast man nochma TuT (z.b. für metin2??)
Suche Objekt id :P
09/13/2010 - WoW Private Server - 4 Replies
Hi, in Theramore ist eine Wehrzitadelle. Frage: - Ist das ein Object oder Display ID? (Wenn ja) * Was ist die ID für den object? (wenn nein) Wie füge ich sowas ?



All times are GMT +1. The time now is 00:28.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.