Jump to content

aristide

New Members
  • Posts

    5
  • Joined

  • Last visited

aristide's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. It must be something... Im pretty sure that my server isnt blocked. I get the result you get aswell, but the thing i need is the url!
  2. @barand Thanks for the code but its givin me an error: Warning: simplexml_load_file(http://www.putlocker.com/get_file.php?stream=WyJSVEU0TnpGRE9ERXlOemt6UTBRek5Eb3hNemc1TlRJMU16VTRMalk1TnpNNk5EVTBZVFpoWTJaak0yWmxOVEJtTVRjNU5UZGhORGxqTWpKbFl6Z3hZbUZtT0dSaU1qVmpPQT09IiwicmVnIl0) [function.simplexml-load-file]: failed to open stream: Connection timed out in /home/vol3_2/byethost9.com/b9_14135796/htdocs/test/test.php on line 22 Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://www.putlocker.com/get_file.php?stream=WyJSVEU0TnpGRE9ERXlOemt6UTBRek5Eb3hNemc1TlRJMU16VTRMalk1TnpNNk5EVTBZVFpoWTJaak0yWmxOVEJtTVRjNU5UZGhORGxqTWpKbFl6Z3hZbUZtT0dSaU1qVmpPQT09IiwicmVnIl0" in /home/vol3_2/byethost9.com/b9_14135796/htdocs/test/test.php on line 22 Fatal error: Call to a member function registerXPathNamespace() on a non-object in /home/vol3_2/byethost9.com/b9_14135796/htdocs/test/test.php on line 24
  3. You are right, the problem is that it's not printing the file at all. Would it help if I gave you the link? here it is: http://www.putlocker.com/get_file.php?stream=WyJSVEU0TnpGRE9ERXlOemt6UTBRek5Eb3hNemc1TlRJMU16VTRMalk1TnpNNk5EVTBZVFpoWTJaak0yWmxOVEJtTVRjNU5UZGhORGxqTWpKbFl6Z3hZbUZtT0dSaU1qVmpPQT09IiwicmVnIl0 And the thing i'm trying to get is the url! is the extension (or the lack of it) blocking me?
  4. Ok i'm going to try. But the thing I'm trying to do is get the URL value in the XML file, not to display the whole file. EDIT: Tried file get contents but it didn't work... I think the website doesn't allow me to read the files?
  5. I need your help! I need to read this xml file... but the problem is that it's not working! This is the XML <rss xmlns:media="http://search.yahoo.com/mrss/" version="2.0"> <channel> <item> <title>Video</title> <media:content url="http://videourl.com/" type="video/x-flv" duration="5128"/> </item> </channel> </rss> And this is my code: <?php $xml=simplexml_load_file("http://videourl.com/etc/"); echo $xml->getName() . "<media:content url="; foreach($xml->children() as $child) { echo $child->getName() . ": " . $child . ""; } ?> And it's not working! It's not working because nothing gets echoed, or printed! Does anyone spot the error? Could it be because the URL of the xml file does not end in with .xml? or is it because this is MRSS xml? thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.