bigt95nt0110
-
Posts
5 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by bigt95nt0110
-
-
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(); }}
-
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"/>
-
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>
-
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()?
colon in the enclosure tag for RSS
in XML
Posted
Below is the full code I'm running.
The loop executes for each $enclosure but no output but "here"