Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Creatting A Playlist Through Php, script help needed
it01y2
post Jul 8 2007, 07:02 PM
Post #1


Member [Level 1]
****

Group: Members
Posts: 65
Joined: 7-July 05
Member No.: 9,139



Hi I am trying to make a script so that i can insert songs into a playlist, but i need a script in which it opens the playlist file and removes the closing tag at the end, so before i can add more entrys.
e.g
CODE
<atx>
<entry>Location 5</entry>
<entry>Location 4</entry>
<entry>Location 3</entry>
<entry>Location 2</entry>
<entry>Location 1</entry>
<atx>


But to add more entrys i would have to get rid of the atx, then use the fputs to place the new entry into the file.
Notice from jlhaslip:
code tags added
Notice from BuffaloHELP:
Topic title modified.
Go to the top of the page
 
+Quote Post
shadowx
post Jul 8 2007, 09:56 PM
Post #2


A clever man learns from his own mistakes, a WISE man learns from those of OTHERS
*********

Group: [HOSTED]
Posts: 884
Joined: 12-April 06
From: Essex, UK
Member No.: 21,719



Well i would read the contents of the file into a variable then use strreplace on it to find the atx part and replace it with "" which is nothing, then add the content i wanted and add the atx at the end of it all.

make sense?
Go to the top of the page
 
+Quote Post
it01y2
post Jul 9 2007, 08:18 PM
Post #3


Member [Level 1]
****

Group: Members
Posts: 65
Joined: 7-July 05
Member No.: 9,139



QUOTE(shadowx @ Jul 8 2007, 10:56 PM) *
Well i would read the contents of the file into a variable then use strreplace on it to find the atx part and replace it with "" which is nothing, then add the content i wanted and add the atx at the end of it all.

make sense?



Thankyou I managed to remove the atx at the end of the document and insert new songs then insert the atx again to close the document off.

Ty Rob
Go to the top of the page
 
+Quote Post
shadowx
post Jul 9 2007, 09:22 PM
Post #4


A clever man learns from his own mistakes, a WISE man learns from those of OTHERS
*********

Group: [HOSTED]
Posts: 884
Joined: 12-April 06
From: Essex, UK
Member No.: 21,719



Glad to hear it! I hate being stumped by code that just seems impossible, its usually not though, well unless its my code in which case i might as well just give up!
Go to the top of the page
 
+Quote Post
alex1985
post Feb 23 2008, 09:29 AM
Post #5


Super Member
*********

Group: [HOSTED]
Posts: 387
Joined: 9-February 08
Member No.: 57,615



What is atx? Could you explain wider, for what I can use it?
Go to the top of the page
 
+Quote Post
dave2win
post Apr 8 2008, 05:14 AM
Post #6


Member [Level 1]
****

Group: [HOSTED]
Posts: 65
Joined: 7-April 08
From: Toronto, Canada
Member No.: 60,502



Yes what is atx is it some thing like you can add attatchments to? Please explain me . I want to make a BB type thing in PHP.

Oh by the way if you finish making the Playlist Script then could you please forward me the source so that I can put it in my BB. I have the working version ready, just need to do the visual themes and other decorative stuff now so the Playlist Script will be a great addon on my BB. Could you please list the features that it supports.


Dave


****Thanks in adv****
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Phpizabi Social Network Script(1)
  2. Background Image Swap Script(15)
  3. Could Someone Make A Php Script For Me?(3)
  4. Loaing Script(3)
  5. Should I Call Him(28)
  6. Invite Script..(2)
  7. Watermark Your Image With Simple Php Script(34)
  8. How To Make A View New Post Script?(5)
  9. Visual Basic 6.0 Help Needed(13)
  10. Sony Handycam(14)
  11. Html Code Tester. Online Script(15)
  12. Php Quiz Script(20)
  13. How To Acess Domain Control Panel.help Needed(5)
  14. Free Weather Feed Script(1)
  15. Arrays And List Boxes(2)
  1. Need Help Installing Dolphin Community Script!(5)
  2. Guessing Php Script(0)
  3. We Need More Members At Ipbgaming.com(26)
  4. Dating Advice Needed(8)
  5. Auto Webpage Resolution Format(7)
  6. Dell Tech Support(22)
  7. Webmail Server Script(2)
  8. Tools Needed!(9)
  9. Windows Update(7)
  10. Tutorial Needed?!(11)
  11. Java Script Drop Down Menu With Css(2)
  12. Free Myspace Script?!?(3)
  13. Exporting Transparent Images In Photoshop To Flash(4)
  14. Javascript : No Right Click Script !@(12)
  15. [help] Java Script: Window.open(8)


 



- Lo-Fi Version Time is now: 20th July 2008 - 08:24 PM