track.getinfo fails if track not found

 
    • rzaidi said...
    • User
    • 11 Jan 2011, 22:08

    track.getinfo fails if track not found

    I am playing around with this PHP code and if I use the track.getinfo method and the track is not found, the PHP code fails. I get this error:

    Error 95 - SimpleXMLElement error: String could not be parsed as XML

    where in the code would I put a check for this error so the code doesn't fail?

Anonymous users may not post messages. Please log in or create an account to post in the forums.