SitePoint Sponsor

User Tag List

Page 2 of 4 FirstFirst 1234 LastLast
Results 26 to 50 of 100
  1. #26
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i dont have it!

  2. #27
    SitePoint Enthusiast
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay,

    In that DOMXML link I gave above, there's a file in there called libxml2.dll...

    Uncomment the line in your PHP.ini file that contains that DLL file... if there isn't one, add your own extension line to the bottom of that section, and try that...

    It's weird that you can't get this to work...

    Also, where is the php_domxml.dll located on your system?

  3. #28
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    first let me thank you for your help;
    some time ago i worked with a script that needed extension=php_gd2.dll: i went to uncomment it, wrote the right path to it and it works; now i'm doing exactly the same with the files of yours, but get the same message: cant find the path....

  4. #29
    SitePoint Enthusiast
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    rfl,

    No problem... I'm more than glad to lend a hand!

    What's the exact line you have in your PHP.ini file? Also, what is the exact error msg you receive?

    You restarted apache after those changes, right?

  5. #30
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    in php.ini:
    extension=php_domxml.dll
    extension=libxml2.dll
    and the message from apache when i try to restart it:
    Unknow():Unable to load dynamic library 'C\PHP\php-4.3.1-Win32\extensions\php_domxml.dll

  6. #31
    SitePoint Enthusiast
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by rfl
    Unknow():Unable to load dynamic library 'C\PHP\php-4.3.1-Win32\extensions\php_domxml.dll
    Is the php_domxml.dll file located in this directory? It seems like an awfully long path...

  7. #32
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    lisboa
    Posts
    423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes, it does; just like i told you, is the same with the extension=php_gd2.dll...

  8. #33
    SitePoint Enthusiast
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay.. Just for curiosity sake, try this:

    Since you're using Apache 2.x, uncomment the php_domxml.dll file, and use the libxml.dll file instead...

    Let me know what happens...

  9. #34
    Anonymous
    SitePoint Community Guest
    Ok, but what about getting the XML code from a database text field?

  10. #35
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Matt, why don't you write an article about XML misconceptions? I'm serious, I bet it would be good.

    I know articles like that already exist but the ones that I've seen are targeted towards database professionals, it would be nice to get an article aimed at the webmaster's perspective.

    An article on MySQL might be good too. ;-)
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?

  11. #36
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by redux
    funnily enough, i was playing with something similar the other day - but then gave up when i found out the client's hosting company had already set up a database for that domain (and yes, i stuck with what i knew and went for a db-driven solution rather than an XML file based one).
    good article though, and very interesting to read about domxml (which i thought at this stage was still an experimental implementation in php ?)
    I was working on and XML/XSL format but came to the conclusion that if the site got really big it would not be the best to have one huge XML or thousands of XML files. I would rather have it in a database then create the XML/XSL from the information in the DB.
    "Happiness doesn't find you, you find happiness" -- Unknown
    www.chuckknows.com

  12. #37
    Anonymous
    SitePoint Community Guest
    we want mysql... :P But great article just not to happy with the "database" choice...

  13. #38
    Anonymous
    SitePoint Community Guest
    I thought the article would have been better if you had made it so that the XML files had a template (XSL) attached to them, and then you used that to transform the data and then output it - to show the real power, since then you could have different articles using different style sheets.

    Just a thought.

    Beau

  14. #39
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Karl
    but you wouldn't want to sleep in it (store).
    Speak for yourself..
    "Happiness doesn't find you, you find happiness" -- Unknown
    www.chuckknows.com

  15. #40
    Database Jedi MattR's Avatar
    Join Date
    Jan 2001
    Location
    buried in the database shell (Washington, DC)
    Posts
    1,107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LOL! I like it!

  16. #41
    Anonymous
    SitePoint Community Guest
    Very useful article :-)

  17. #42
    Anonymous
    SitePoint Community Guest
    I keep getting
    Notice: Undefined variable: file in c:inetpubwwwrootMyWebxmltesteditArticle.php on line 25

    undefined variables errors!!!

  18. #43
    Anonymous
    SitePoint Community Guest
    Article seemed very interesting except the
    author did not seem to test his code before posting. Next time I'll read the comments first, before wasting my time.

  19. #44
    SitePoint Enthusiast
    Join Date
    May 2003
    Location
    Serbia
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I still can't make it work! When trying to view index.php I get following errors:

    PHP Code:
    Warningdomxml_open_file() [function.domxml-open-file]: warningin c:\web\xmltest\index.php on line 42

    Warning
    domxml_open_file() [function.domxml-open-file]: failed to load external entity "./xml/admin.xml" in c:\web\xmltest\index.php on line 42

    Fatal error
    Call to a member function on a non-object in c:\web\xmltest\index.php on line 46 
    Wondering about best weight loss pill? Take a look at Proactol.

  20. #45
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All the advertising is cut from this thread along with relevant follow-up posts. This is not the place. Let's talk about the article
    Aaron Brazell
    Technosailor



  21. #46
    Anonymous
    SitePoint Community Guest
    this was a really great article for a php newbie like myself. Thank you!

    I have one question - when I have multiple articles, is there a way to format them on the index.php page so that the newest file is always at the top of the page? At the minute what I have is them sorted numerically by the id (Im using a date as the id ie 170103)

    cheers!

    GM
    uk

  22. #47
    Anonymous
    SitePoint Community Guest
    That is what you would usually do. You would need to have a date tag and sort the articles by date and display them accordingly. Ofcourse sorting would be much easier if all your information was stored in the database.

  23. #48
    SitePoint Member
    Join Date
    Mar 2004
    Location
    Scarborough
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could a kind soul somewhere help me getting this little tutorial working for me? My plan was to download the files, throw them up to a little free site, and then go through the tutorial to learn how everything works. Perhaps not the most advisable way of using a tutorial, but it's the way I like to learn.

    Unfortunately, do to differences in PHP and what not the code seems to have several errors in it. Seeing as I know very little about PHP and XML myself (yet), I'd greatly appreciate someone taking a look at the errors and suggesting a fix.

    Thanks so much.
    http://shs2006.t35.com/


    -Chesta

  24. #49
    SitePoint Zealot
    Join Date
    Aug 2003
    Location
    NYC
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A couple of items I'm trying to troubleshoot:
    1. I understand that index.php should display a list of available articles, and so far under the separator line nothing shows up listed.
    2. Articles are listed on the adminindex.php and I can delete an article from the list, however to go to createArticle.php fill in the form and click "Add Article" nothing is created and nothing displays, though I am forwarded to addArticle.php and the script stalls and nothing happens.

    Do these symptoms sound like the DOMXML is the culprit?

    Any insight appreciated, thank you.

  25. #50
    SitePoint Evangelist
    Join Date
    May 2004
    Location
    Germany
    Posts
    550
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if you have it running on a windows machine you have to use full paths with domxml, e.g. C:/path/to/root/xml/article.xml

    see: http://www.php.net/manual/de/functio...-open-file.php

    the third comment or so


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
  •