SitePoint Sponsor

User Tag List

Page 3 of 4 FirstFirst 1234 LastLast
Results 51 to 75 of 100
  1. #51
    SitePoint Zealot
    Join Date
    Aug 2003
    Location
    NYC
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Diamaju, thanks for responding. I'm not on a Windows server, but good to know, thanks for the tip.

    Linux System
    Apache Version 1.3.27
    PHP Version 4.3.2
    XML Support: active
    XML Namespace Support: active
    EXPAT Version 1.95.2

  2. #52
    SitePoint Evangelist
    Join Date
    May 2004
    Location
    Germany
    Posts
    550
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    then perhaps you have register_globals = off

    in the article the author doesn't use $_GET and $_POST consequent, i got it working with a little rewriting, but stupidly deleted the files 2 or 3 days ago

  3. #53
    SitePoint Zealot
    Join Date
    Aug 2003
    Location
    NYC
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, globals are off. But I just found two articles that will help me get through life...

    One tells me that EXPAT is a SAX parser, so I'll head in that direction instead of DOM for now. A second article author seems to be saying that SAX is the preferred method with PHP, which is my favorite scripting next to ActionScript.

    DOM centric article

    SAX (EXPAT) article

    Thanks again.

  4. #54
    SitePoint Guru marcel's Avatar
    Join Date
    Nov 2000
    Posts
    920
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I keep getting this error:
    Fatal error: Call to a member function on a non-object in c:\appserv\www\xmltest\editarticle.php on line 33

  5. #55
    SitePoint Guru marcel's Avatar
    Join Date
    Nov 2000
    Posts
    920
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As a CMS, this is bound to get sluggish.

    But it would be interesting as a configuration system .

  6. #56
    Edward
    SitePoint Community Guest
    I am running this on Apache 1.3.29 with PHP 4.3.4 on windows. with DOM_XML enabled in php.ini. Not getting the results expecged in the article (xml files not showing up in listing, not able to edit or delete, getting blank pages)...is there a unix vs. windows issue with these files?

  7. #57
    SitePoint Enthusiast
    Join Date
    Jul 2004
    Location
    Massachussetts, US
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very nice, and althought I won't be using it for a CMS, It still does teach you how to parse data from an XML document to your home page, whether the XML's source is internal or external.

  8. #58
    John
    SitePoint Community Guest
    I think the tutorial is good at showing how all the pieces join together. I think it is also good because you can implemnt the system on a web server without having to pay extra for server extenstions. If I were to try and tweak this script for displaying news articles by date order though, I am not sure where I would start! Perhaps I will have a better look around the website.

  9. #59
    Frits
    SitePoint Community Guest
    A very nice start of a small CMS. But I see one implementation/security problem in this: When creating a new article, you just create a new file and write it. But for this to work you would need write permissions in the xml dir. Of course nobody wants that dir to be world-writable, so what is the best PHP solution to this?

  10. #60
    gabriel
    SitePoint Community Guest
    i want to use this but makes a mistake its says Fatal error: Call to undefined function: domxml_open_file() why?

  11. #61
    chris
    SitePoint Community Guest
    Nice tutorial Tom!
    My only problem is the same as gabriel's: Although i'm using PHP 4.3.8, the function domxml_open_file() is not available on my system.. how do you turn this on??
    and are you able to turn it on, if you are NOT the sysadmin of your server??

    please give us a hint someone..

    thank you!

  12. #62
    Kristian
    SitePoint Community Guest
    you are getting the domxml errors because the copy of php that is installed on your server was not built with support for DOM, you will need to get it recomplied. You will need the current version of libxml2 and zlib. then compile with the --with-dom --with-zlib-src=[source path]

  13. #63
    SitePoint Zealot saurab's Avatar
    Join Date
    Sep 2004
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    as the number of articles increase, its crazy to implement the searching mechanisms as described in this article.

  14. #64
    Consumer
    SitePoint Community Guest
    A great article, certainly opened my mind on methods of content management. I was wondering if a more optimal result would come from sculpting this into a system that creates XML from db results ?

  15. #65
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This was a great project to jump-start me on PHP and XML. I wrote a very simple little blog after experimenting with Tom's code.

    Tom has more great stuff at MyerMan.com and TDDM.

  16. #66
    SitePoint Member
    Join Date
    May 2005
    Location
    vienna / austria
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    OS X - problem

    ive installed PHP 4.3.11 with DOM-support on my apple OS X 10.3.8.
    still, i get the following errors with index.php:

    Warning: domxml_open_file(): Document is empty in /Users/patrick/Sites/xmltest/index.php on line 42
    Warning: domxml_open_file(): Start tag expected, '<' not found in /Users/patrick/Sites/xmltest/index.php on line 42
    Fatal error: Call to a member function on a non-object in /Users/patrick/Sites/xmltest/index.php on line 46

    any help is appreciated.
    patrickk.

  17. #67
    SitePoint Member
    Join Date
    May 2005
    Location
    vienna / austria
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    problem solved: there was a .DS_Store-file in my /XML-folder

  18. #68
    SitePoint Wizard REMIYA's Avatar
    Join Date
    May 2005
    Posts
    1,351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The best CMS article, I've ever seen. :)

  19. #69
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by patrickk
    problem solved: there was a .DS_Store-file in my /XML-folder
    And (in case you were unaware) OS X will create a new one every time you open that folder through finder.
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?

  20. #70
    SitePoint Enthusiast
    Join Date
    May 2005
    Location
    Sweden
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I get this error on the index page.. why?
    Fatal error: Call to undefined function domxml_open_file() in /index.php on line 42

  21. #71
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    After experimenting with the article's code here, I took what I learned and started this project

    After reading the replies in this thread I see that a db would be much more efficient - but it was a good exercise because I'm a PHP/XML newbie

  22. #72
    SitePoint Wizard bronze trophy
    Join Date
    Oct 2001
    Location
    Vancouver BC Canada
    Posts
    2,030
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MikeFoster
    After reading the replies in this thread I see that a db would be much more efficient - but it was a good exercise because I'm a PHP/XML newbie
    I don't know... for larger stuff a db is probably the way to go but for smaller content this might be just the ticket and combining with XSLT gives you all sorts of possibilities for syndication.

    I think too many people (myself included) get into a db only mindset when looking for data storage/retrieval solutions. I use XML in at least 50% of my web solutions but db's often win out in the data layer.

    Come to think of it... I've been an XML newbie for too long.
    Andrew Wasson | www.lunadesign.org
    Principal / Internet Development

  23. #73
    Welly
    SitePoint Community Guest
    Nice article except xml is absolutely nothing like html, apart from using < and > to define a tag. Good work, other than that.

  24. #74
    balong
    SitePoint Community Guest
    very usefull...been thinking of how to webservices of .NET and my PHP site would ever work. I think the only way is through xml...correct me if i'm wrong.

    after this i'll be surely starting this.

  25. #75
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure, but it seems like a lot more work is involved in creating and displaying xml based content rather than using a database. The benefits I do see however are the ease of syndication and data exchange via rss feeds, but you could always create xml/rss docs on the fly for download with php and a database call. It would be nice too to be able to migrate your whole website to a new server and easily just move the xml docs instead of the schema and data of a database, but how frequently does that happen.

    One question I have - What are the speed differences for opening/closing a directory of xml files to search for specific data compared to searching a database?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •