php อ่านค่า XML
===========================================================
<?php
$xml = file_get_contents( 'http://112.121.151.69:8002/admin.cgi?sid=1&pass=sssa&mode=viewxml&page=4' ); // อ่านไฟล์ XML
preg_match_all('/<title>(.*?)<\/title>/isu',$xml,$title); // อ่าน NAME
// print_r($name);
echo '<br />name 1 :: '.$title[1][0];
echo '<br />name 2 :: '.$title[1][1];
echo '<br />name 3 :: '.$title[1][2];
echo '<br />name 4 :: '.$title[1][3];
echo '<br />name 5 :: '.$title[1][4];
echo '<br />name 6 :: '.$title[1][5];
echo '<br />name 7 :: '.$title[1][6];
echo '<br />name 8 :: '.$title[1][7];
echo '<br />name 9 :: '.$title[1][8];
echo '<br />name 9 :: '.$title[1][9];
?>
===========================================================
Wednesday, December 28, 2016
Saturday, November 26, 2016
การ Backup teamspeak3 Server ไม่ให้ไฟล์ตั้งค่าใน Server หายไปเวลาลงใหม่.
Copy All file below in your directory TS3 Server.
ทำการเก็บไฟล์ต่างๆตามข้างล่างไว้เวลาใช้งานก็เเค่วางทับลงที่ไฟล์ server ใหม่ที่ทำการติดตั้งค่าต่างๆของ server จะกลับมาเหมือนเดิมทุกอย่าง
ทำการเก็บไฟล์ต่างๆตามข้างล่างไว้เวลาใช้งานก็เเค่วางทับลงที่ไฟล์ server ใหม่ที่ทำการติดตั้งค่าต่างๆของ server จะกลับมาเหมือนเดิมทุกอย่าง
- The files directory
- licensekey.dat
- query_ip_blacklist.txt
- query_ip_whitelist.txt
- serverkey.dat
- ts3server.ini
- ts3server.sqlitedb
- ts3server_win64.exe
ตัวอย่างไฟล์ที่ที่ทำการเก้บไว้ อย่างน้อยตามข้างล่าง
Thursday, October 13, 2016
อ่านไฟล์ XML ด้วย PHP - Read XML File witch php.
<?php
$xml = file_get_contents( 'TEST.XML' );
preg_match_all('/<title>(.*?)<\/title>/isu',$xml,$title);
// print_r($name);
echo '<br />name 1 :: '.$title[1][0];
echo '<br />name 2 :: '.$title[1][1];
echo '<br />name 3 :: '.$title[1][2];
echo '<br />name 4 :: '.$title[1][3];
echo '<br />name 5 :: '.$title[1][4];
echo '<br />name 6 :: '.$title[1][5];
echo '<br />name 7 :: '.$title[1][6];
echo '<br />name 8 :: '.$title[1][7];
echo '<br />name 9 :: '.$title[1][8];
echo '<br />name 9 :: '.$title[1][9];
?>
$xml = file_get_contents( 'TEST.XML' );
preg_match_all('/<title>(.*?)<\/title>/isu',$xml,$title);
// print_r($name);
echo '<br />name 1 :: '.$title[1][0];
echo '<br />name 2 :: '.$title[1][1];
echo '<br />name 3 :: '.$title[1][2];
echo '<br />name 4 :: '.$title[1][3];
echo '<br />name 5 :: '.$title[1][4];
echo '<br />name 6 :: '.$title[1][5];
echo '<br />name 7 :: '.$title[1][6];
echo '<br />name 8 :: '.$title[1][7];
echo '<br />name 9 :: '.$title[1][8];
echo '<br />name 9 :: '.$title[1][9];
?>
Wednesday, September 7, 2016
Monday, July 18, 2016
FileZilla Drag and Drop Error in Windows 7, 8,8.1,10 howto repiar
- First Open command prompt (cmd) and run it as Administrator.
- Go to the location of Filezilla.For 32 bit OS and 64 bit OS and 32 bit version of filezilla and 64-bit version of Filezilla respectively,use below command:C:\Windows\system32>cd/C:\>cd “Program Files”C:\Program Files>cd “FileZilla FTP Client”For 64 bit OS with 32 bit version of Filezilla use below command:C:\Windows\system32>cd/C:\>cd “Program Files (x86)”C:\Program Files (x86)>cd “FileZilla FTP Client”
- If you are using 64-bit operating system then just type this command : regsvr32 fzshellext_64.dll . For 32-bit OS use this command: regsvr32 fzshellext.dll
- A new dialog box will appear saying: DllRegisterServer in fzshellext_64.dll succeeded. Click on OK button.
- Now restart you pc. The error will be fixed now.
FileZilla Drag and Drop Error in Windows 7, 8,8.1,10 howto repiar
- First Open command prompt (cmd) and run it as Administrator.
- Go to the location of Filezilla.For 32 bit OS and 64 bit OS and 32 bit version of filezilla and 64-bit version of Filezilla respectively,use below command:
C:\Windows\system32>cd/
C:\>cd “Program Files”
C:\Program Files>cd “FileZilla FTP Client”For 64 bit OS with 32 bit version of Filezilla use below command:C:\Windows\system32>cd/C:\>cd “Program Files (x86)”C:\Program Files (x86)>cd “FileZilla FTP Client” - If you are using 64-bit operating system then just type this command :
regsvr32 fzshellext_64.dllFor 32-bit OS use this command:
regsvr32 fzshellext.dll - A new dialog box will appear saying: DllRegisterServer in fzshellext_64.dll succeeded. Click on OK button.
- Now restart you pc. The error will be fixed now.
Friday, June 24, 2016
Play button audio element.
<audio id="demo" controls >
<source src="http://ohmi-design.com:8606/;stream.mp3" type="audio/mp3">Your browser does not support the audio element.
</audio><br>
<button id="dataRefreshButton" name="nrg"onclick="document.getElementById('demo').play()">Play the Audio</button>
Monday, June 13, 2016
ติดตั้ง SAM Broadcaster STUDIO 2014.7 รองรับวินโดว windowsxp, windows7, windows8, windows10
ติดตั้ง SAM Broadcaster STUDIO 2014.7 รองรับวินโดว windowsxp, windows7, windows8, windows10
ติดตั้ง SAM Broadcaster STUDIO 2014.7
- รองรับวินโดว windowsxp, windows7, windows8, windows10
- แก้ปัญหา Bug ไม่โชวภาษาไทยที่รายการเล่นเพลง
- รองรับระบบ Encode ShoutcastV2 โดยตรงเสียงชัดเจน
- รองรับการทำงานระบบแสดงชื่อดีเจที่กำลังเปิด
สามารถดาโหลดใด้ที่ระบบควบคุมพอร์ต
https://www.youtube.com/watch?v=JkuEzyMehE0
- รองรับวินโดว windowsxp, windows7, windows8, windows10
- แก้ปัญหา Bug ไม่โชวภาษาไทยที่รายการเล่นเพลง
- รองรับระบบ Encode ShoutcastV2 โดยตรงเสียงชัดเจน
- รองรับการทำงานระบบแสดงชื่อดีเจที่กำลังเปิด
สามารถดาโหลดใด้ที่ระบบควบคุมพอร์ต
https://www.youtube.com/watch?v=JkuEzyMehE0
Subscribe to:
Comments (Atom)
