Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1673 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Php/xml

Thread title: Php/xml
Closed Thread    
    Thread tools Search this thread Display Modes  
08-04-2005, 07:03 AM
#1
jono1 is offline jono1
jono1's Avatar
Status: Non-conformist
Join date: Jul 2005
Location: Canberra, Australia.
Expertise:
Software:
 
Posts: 1,172
iTrader: 0 / 0%
 

jono1 is on a distinguished road

  Old  Php/xml

I don't know much about XML other than that it's kinda like a database that uses html-like tags...

Essentially I exported my iTunes library to a file, which produces stuff like this
Code:
		<key>1840</key>
		<dict>
			<key>Track ID</key><integer>1840</integer>
			<key>Name</key><string>Uno (Live)</string>
			<key>Artist</key><string>The Dawn Collective</string>
			<key>Album</key><string>Shhh Mix</string>
			<key>Genre</key><string>Alternative</string>
			<key>Kind</key><string>AAC audio file</string>
			<key>Size</key><integer>3909880</integer>
			<key>Total Time</key><integer>242903</integer>
			<key>Track Number</key><integer>6</integer>
			<key>Track Count</key><integer>15</integer>
			<key>Date Modified</key><date>2005-07-09T11:41:19Z</date>
			<key>Date Added</key><date>2005-07-09T11:39:08Z</date>
			<key>Bit Rate</key><integer>128</integer>
			<key>Sample Rate</key><integer>44100</integer>
			<key>Play Count</key><integer>1</integer>
			<key>Play Date</key><integer>-1091120234</integer>
			<key>Play Date UTC</key><date>2005-07-10T03:31:02Z</date>
			<key>Normalization</key><integer>1724</integer>
			<key>Track Type</key><string>File</string>
			<key>File Folder Count</key><integer>4</integer>
			<key>Library Folder Count</key><integer>1</integer>
		</dict>
and I was wondering if I could use PHP to create an html table out of that so I could publish my song list online..

08-04-2005, 07:49 AM
#2
hjalmar is offline hjalmar
Status: Senior Member
Join date: Nov 2004
Location: Sweden
Expertise:
Software:
 
Posts: 857
iTrader: 11 / 100%
 

hjalmar is an unknown quantity at this point

  Old

08-04-2005, 09:46 AM
#3
jono1 is offline jono1
jono1's Avatar
Status: Non-conformist
Join date: Jul 2005
Location: Canberra, Australia.
Expertise:
Software:
 
Posts: 1,172
iTrader: 0 / 0%
 

jono1 is on a distinguished road

  Old

only a little - that's the page I've seen before but I think it's targeted towards advanced PHP users...plus i think it involves installing extra things into PHP which I would have no idea how to do - I use a pre-packaged testing server called Wamp that does all kind of thing itself.

08-04-2005, 10:17 AM
#4
Koobi is offline Koobi
Koobi's Avatar
Status: Member
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 312
iTrader: 0 / 0%
 

Koobi is on a distinguished road

  Old

well if you want to use extra features you are going to have to install any extra required libraries.

you can also look for XML parsers at http://pear.php.net/

this would be easier if you have PHP5

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed