Jump to content

bhikkhu

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

bhikkhu's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. These are excellent, thank you so much.
  2. I am starting development on a new project, and as I have learned from past mistakes, I'm trying to anticipate and plan for a few features in the future. The one I am struggling with the most is the concept of having an API into the data and features of the site. I searched around the forums here and, unfortunately, most of the search results tend to return questions and solutions on using specific API's. I apologize if another thread exists, please point me in that direction. Long term goal: Have a fully featured API that would allow other developers to access, and even manipulate data from an external source outside of the site itself. Short Term goal: Write the base system with the long term goal in mind so that it's easy to implement when the time comes. Of course I'm not expecting anyone to tell me exactly how to do these things or provide any code examples... i am simply looking for resources. I am shocked and amazed at how difficult it has been to find anything in the form of a website/tutorial/book related to this topic. I am sure somebody out there has had some recent experience in this and I would greatly appreciate your sharing of the resources you used. Thanks in advance.
  3. caps, nice to know I'm not the only new guy to phpfreaks. I don't work with files very often, usually just databases, so I'm a little rusty, but let me see if I can help out in any way. 1. Is it safe to assume that you are passing in the row number that you want to be deleted? It is hard-coded as 1 in your example here... but maybe you re-wrote that for posting. 2. Probably not the problem, but I think reading and writing from the same file can cause some fairly adverse behavior. (could be wrong here) Just for experimentation's sake, write out to another file and see what happens.
  4. [!--quoteo(post=385665:date=Jun 19 2006, 11:35 AM:name=ToonMariner)--][div class=\'quotetop\']QUOTE(ToonMariner @ Jun 19 2006, 11:35 AM) [snapback]385665[/snapback][/div][div class=\'quotemain\'][!--quotec--]You could make it valid by parsing the content of the file and looking for elements with no closing tag and give them one (no entendre!!!!). [/quote] Thanks for the reply. I thought about this... but, ironically... how do I parse it to add the closing tag?!?! [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] I'm really out of luck here aren't I?... [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] Thanks again. [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
  5. I'm new here and I've been trying to find the answer to my question without posting but I have been unsuccessful. If this has already been covered, please provide me with a link, and accept my apology for asking the same question again. As I begin using these forums more often, it won't happen. I am trying to parse out an XML file, but the file itself is not well formed. Here is an example snippet. [code] <root>    <book id="foo">       <chapter id="1">          <sentence id="1" />This is the 'CDATA' that I need..          <sentence id="2" />Another sentence example...       </chapter>    </book> </root> [/code] I need to pull out the data from the sentence, but it isn't wrapped in <sentence>data</sentence> format. The sentence element is closed immediately. I know this is a bit of an XML question, but I can't change the XML, I have to parse it as it is, and I'm using PHP to do it. Any help is greatly appreciated. I don't have the code I've got in front of me, but it isn't much anyway, and I'm really just looking for direction. Thanks again.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.