Jump to content

bigt95nt0110

Members
  • Posts

    5
  • Joined

  • Last visited

bigt95nt0110's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Below is the full code I'm running. <?phpinclude_once('../autoloader.php');ini_set('display_errors', 1);error_reporting(E_ALL);$feed = new SimplePie();$feed->set_feed_url('http://simplepie.org/blog/feed/');$feed->init();$feed->handle_content_type();foreach ($feed->get_items() as $item){ foreach ($item->get_enclosures() as $enclosure) { echo $enclosure->embed(); echo "here<br>" }}?> The loop executes for each $enclosure but no output but "here"
  2. Below is a snipit of code that I got from SimplePie that is suppose to parse an enclosure for it's contents, but when I run it I get a blank page. I know that the feed has enclosure tags present. What am I missing? $feed = new SimplePie();$feed->set_feed_url('http://simplepie.org/blog/feed/');$feed->init();$feed->handle_content_type();foreach ($feed->get_items() as $item){ foreach ($item->get_enclosures() as $enclosure) { echo $enclosure->embed(); }}
  3. below is an enclosure tag from craigslist RSS feed. Can anyone tell me what the "enc:" in the tag means <enc:enclosure resource="http://images.craigslist.org/00Y0Y_kZI4M6ZKl0o_300x300.jpg" type="image/jpeg"/>
  4. Below there are two blocks of code that allow user to login to a secure site. NOTE: both blocks are striped down for simplicity.Block 1 is a stripped down form where the username and the password are explicitly assigned in "value=" assignment. When exexecuted every thing works fine and the user is taken to the appropriate page. However if block 2 is executed the user is presented with a another login page.Can anyone point me in the right direction??Thanks //Block 1<body><form action="https://www.mystuff.org/login" method="get" name="login"> <input type="text" id="inputEmailHandle" name="inputEmailHandle" value="mememe@gmail.com"> <input id="inputPassword" type="password" name="inputPassword" autocomplete="off" value="123"> <label> </label> <button type="submit">Log In</button></form></body>//BLOCK 2<body><?phpinclude('simple_html_dom.php')$url="https://www.mystuff.org/login?inputEmailHandle=mememe%40gmail.com&inputPassword=123"; $html= file_get_html($url);?></body>
  5. I am trying to strip all nonprintable chars from text excep the n. I am using the .replace(,) method to acomplosh this, but only having limited sucess. Is there any tutorials on the arguments that get passed to .replace()?
×
×
  • Create New...