Results 1 to 7 of 7

Thread: Php/xml

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2008
    Posts
    353

    Php/xml

    Hi guys...my friend coded a IMDB existing code from www.izzysoft.de.

    What he did is that he did like a xml parser code...
    But...know that code does not work anymore, and my frined is not that much aroun to solve it.

    Unfortuately i don't know php or xml.

    I was just wondering if someone could help or at least point the problem, because form that php/xml thing i was parsing the results back to my vb6 application....

    Can someone give my a hand, i would really appreciate it.
    Attached Files Attached Files

  2. #2
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Php/xml

    What exactly does the PHP do? Does it provide you with an XML document? Or does it parse XML?

    For parsing XML in PHP In my experience I have found PHP's Simple XML to be very good.
    Chris

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2008
    Posts
    353

    Re: Php/xml

    well not exactly...it's all php...but im not an expert on php or xml...this code deos allow me to get XML output with php code.

    Well it's a useful piece of code

  4. #4
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Php/xml

    In plain english what does the code that your having trouble with do (or supposed to do)?

    You say it doesn't work... do you have any errors? Has it just stopped working? have you changed anything? Moved it to a new server? Did it ever work?

    People are going to be more inclined to help you out if you can provide as much info as possible.
    Chris

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2008
    Posts
    353

    Re: Php/xml

    Sure....
    Ok...

    THis code retrieves movie info.
    The i cant run the script because has been edited, and cannot be ran in a browser..but still the data can be read trough vb6 code...i managed that.

    So in fact if you use 127.0.0.1 as your server and you type the following adress in your browser you'll get an error ERROR IN LINE 1 , 61.I fixed that by removing

    echo " <rating>" . $movie->rating() . "</rating>";
    ' echo " <votes>" . $movie->votes() . "</votes>";

    The thing is that i "fixed" the script somehow by removing these those statements, but i cannot get those values back to my app or the cast or someother info, while the original project at www.izzysoft.de gets all the info...But i cannot load info from the original project...that's why i had this one edited.

    I hope i provided some info
    http://127.0.0.1/imdb/imdbsearch??na...archtype=movie

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Php/xml

    Oddds are, you don't have the database. that seems to be the problem... you'll need a copy of the database, install it (probably mySQL) ... and then change the settings in a db config file somewhere to point to your local copy of the database.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2008
    Posts
    353

    Re: Php/xml

    Quote Originally Posted by techgnome
    Oddds are, you don't have the database. that seems to be the problem... you'll need a copy of the database, install it (probably mySQL) ... and then change the settings in a db config file somewhere to point to your local copy of the database.

    -tg
    No m8.
    I dont know how this scripts exactly works, but it got it to work removing the 2 lines. It works and i dont know how exactly that script works.
    THing is that some parts of the script dont work

    It's a great script tough especially the original one

Posting Permissions

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



Click Here to Expand Forum to Full Width