Jump to content

Arty Ziff

Members
  • Posts

    67
  • Joined

  • Last visited

Everything posted by Arty Ziff

  1. I'm using the following code to grab an RSS feed and parse it into an array: $doc = new DOMDocument(); $doc->load('http://MySite.com/feed/'); $arrFeeds = array(); foreach ($doc->getElementsByTagName('item') as $node) { $itemRSS = array ( 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue, 'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue, 'link' => $node->getElementsByTagName('link')->item(1)->nodeValue, 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue ); array_push($arrFeeds, $itemRSS); } My problem is that there is one tag I'd like to access, but don't quite know how... It is: <content:encoded> I've looked at 'content' => $node->getElementsByTagName('content:encoded')->item(1)->nodeValue and 'content' => $node->getElementsByTagName('content')->item(1)->nodeValue But neither work. Any ideas?
  2. I changed the link style of permalinks from the default: http://MySite.com/?p=123 To something I feel is more friendly: http://MySite.com/2011/10/01/sample-post/ And saved the new settings... Testing it out, I found that links now showed the new format, but when followed go to "Page Not Found". Now, I was thinking perhaps WordPress couldn't write the changes to .htaccess (I'm thinking mod_rewrite) and so the the new links where not being translated by Apache. So, I changed the file permission (just for testing) to 777 and tried again, resaving the new settings and navigating to the page. Still "Page Not Found". Any WordPress gurus out there know what I'm doing wrong? I'm sure it's obvious... Thanks, Arty Zifferini
  3. Recommendations for web developer tools / extensions for Chrome?
  4. This little discussion with / about user:ebmigue is interesting and all that, but has essentially HIJACKED my thread which is asking a question. Sure, I do use an "abstraction layer" of sorts in that I've written a class that handles the actual php DB commands - information about what I need to query is passed to the class, and results are passed back. But it's "homegrown" and limited, and I want more. I'm not interested in reinventing the wheel. I'm thinking of ADOdb, and I know there are competing libraries. I'm assuming people here have personal opinions about the completeness, design, and usability of ADOdb and similar libraries? User:ebmigue's project looks very interesting, and I will look at it because it looks interesting, but it's NOT what I'm looking for today...
  5. Currently, I'm using MySQL. and I don't see transitioning to something else as very likly. But if we did, it would be PostgreSQL. In any case... What is the current "group-think" on abstraction layers? For non-trivial applications? Any favorites?
×
×
  • 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.