After I use snoopy to get the code for a webpage like below, how am I suppose to display it so you see the page?
feyd | Had to remove posted code as it was well beyond capacity and not very helpful.
Quick Snoopy Question
Moderator: General Moderators
feyd | Please use
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Sorry, I posted the wrong file. This is my script. It looks like ti is already being echo'd. Do I echo the echo? Also, this will get the complete source, but how do I make it get the images and everything. Thank you very much for helping me. I'm about to pull my hair out.
If you would like to see where I'm at goto: http://www.nombyte.com/spiders.phpCode: Select all
<?php
include "Snoopy.class.php";
$snoopy = new Snoopy;
$url = $_POST["full_url"];
$snoopy->user = "joe";
$snoopy->pass = "bloe";
if($snoopy->fetch("http://www.slashdot.org/"))
{
//echo "response code: ".$snoopy->response_code."<br>\n";
//while(list($key,$val) = each($snoopy->headers))
// echo $key.": ".$val."<br>\n";
//echo "<p>\n";
echo "<PRE>".htmlspecialchars($snoopy->results)."</PRE>\n";
}
else
echo "error fetching document: ".$snoopy->error."\n";
?>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]You were right. Now it renders the page. How can I get it to cache the images and then pull them from my site?
Also, reading past posts i [s]c[/s] see a command 'curl'. Would that be better for me?
Thanks again,
nomb
Also, reading past posts i [s]c[/s] see a command 'curl'. Would that be better for me?
Thanks again,
nomb
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.
Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.