|
หัวข้อ: อยากสร้าง php ตรงสีแดง ทำไงครับ เริ่มหัวข้อโดย: iam19 ที่ 11 กุมภาพันธ์ 2012, 19:14:25 อยากสร้าง php ตรงสีแดง ทำไงครับ
<object id="mthai_player" width="480" height="372" data="http://video.mthai.com/Flash_player/flowplayer/flowplayer-3.1.5.swf" type="application/x-shockwave-flash" ><param name="allowFullScreen" value="true" ></param><param name="movie" value="http://video.mthai.com/Flash_player/flowplayer/flowplayer-3.1.5.swf"></param><param name="flashvars" value="config=http://video.mthai.com/get_config_event.php?id=1328776704"></param><param name="allowscriptaccess" value="always"></param><embed src="http://video.mthai.com/Flash_player/flowplayer/flowplayer-3.1.5.swf" type="application/x-shockwave-flash" allowscriptaccess="always" flashvars="config=http://video.mthai.com/get_config_event.php?id=1328776704" allowfullscreen="true" width="480" height="372"></object> ก็อบของ mthai วางในโฮสของผม(http://localhost/get_config_event.php) มันก็ไม่เล่น แต่พอเอาของ mthai (http://video.mthai.com/get_config_event.php?id=1328776704) มาวาง มันเล่นเฉย อยากสร้าง เหมือนหน้านี้ http://video.mthai.com/get_config_event.php?id=1328776704 ครับ แล้วให้มันเล่นกับ flawplayer ได้ ผมลองก็อบวางแล้วมันไม้ได้ อะ ใครรู้ช่วยบอกหน่อยครับ หัวข้อ: Re: อยากสร้าง php ตรงสีแดง ทำไงครับ เริ่มหัวข้อโดย: AbuseMan ที่ 11 กุมภาพันธ์ 2012, 19:15:10 งงฮะ
หัวข้อ: Re: อยากสร้าง php ตรงสีแดง ทำไงครับ เริ่มหัวข้อโดย: iam19 ที่ 11 กุมภาพันธ์ 2012, 19:17:13 อยากสร้าง เหมือนหน้านี้ http://video.mthai.com/get_config_event.php?id=1328776704 ครับ แล้วให้มันเล่นกับ flawplayer ได้ ผมลองก็อบวางแล้วมันไม้ได้ อะ
หัวข้อ: Re: อยากสร้าง php ตรงสีแดง ทำไงครับ เริ่มหัวข้อโดย: koncept ที่ 11 กุมภาพันธ์ 2012, 19:26:29 เอารูปมาดูคับ
หัวข้อ: Re: อยากสร้าง php ตรงสีแดง ทำไงครับ เริ่มหัวข้อโดย: thenetxx ที่ 11 กุมภาพันธ์ 2012, 19:54:04 ติดปัญหา cross site script สำหรับตัว flash ครับ
หัวข้อ: Re: อยากสร้าง php ตรงสีแดง ทำไงครับ เริ่มหัวข้อโดย: vii5ri ที่ 11 กุมภาพันธ์ 2012, 19:56:21 :-X :-X
หัวข้อ: Re: อยากสร้าง php ตรงสีแดง ทำไงครับ เริ่มหัวข้อโดย: ghostbehead ที่ 11 กุมภาพันธ์ 2012, 20:01:32 ถ้าผมเข้าใจไม่ผิดนะครับ
ลิงค์ดังกล่าว mthai สร้างข้อมูลมาให้ในรูปแบบ JSON ถ้าต้องการนำมาใช้ ต้องใช้ function file_get_contents (http://php.net/manual/en/function.file-get-contents.php) เข้าไป เพื่อดึงข้อมูลมา แล้วใช้ function json_decode (http://www.php.net/manual/en/function.json-decode.php) แปลงให้เป็น array ก็สามารถนำข้อมูลไปใช้ได้แล้วครับ :wanwan019: edit: แก้ไขคำผิด |