View Single Post
  #2  
Old 31st October 2011, 19:46
alleks alleks is offline
Senior Member
 
Join Date: Nov 2010
Posts: 157
Thanks: 9
Thanked 9 Times in 9 Posts
Default

I have tried this but with no success

PHP Code:
if (preg_match('#<?xml version="1.0"  standalone="yes"?>\s*<error>\s*<message>(.*)</message>\s*<code>(.*)</code>\s*</error>#i', $videosJson));
for this

PHP Code:
<?xml version="1.0"  standalone="yes"?>
    <error>
        <message>No Videos found!</message>
        <code>2001</code>
    </error>
Reply With Quote