Poppy Alexandra wrote:
Please provide lines 89-91 of book-1.php only please.
humbug David :-) - turns out lines 89-91 will tell the OP nothing about
the error because the its the definition of function getBlock()
that is missing a closing brace (at around line 38) that si causing
the error.
Thanks for the reply, it had really stumped me. I knew it would be an
error with the bit I typed in :)
it usually is ;-)
once you add the missing brace the script works (at least it dumped a
load of content from http://www.techdeals.net/ onto my console).
by helping you get your sample code working are per chance hepling into
life yet another 'linkfarm' or some similarly SEO related nasty?
It's only sample code from a book. All of the examples are in Perl,
except this particular code. I am new to PHP and wanted to try and run
the code to see if it worked.
which doesn;t actually answer my question :-) you see I have my suspicions
about a book named 'Spidering Hacks' - if it was meat I doubt it would be
kosher or halal.
Thank you. Poppy
_________________________________________________________________
Buy now @ Tradingpost.com.au
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fad%2Eau%2Edoubleclick%2Enet%2Fclk%3B24875379%3B12369854%3Ba%3Fhttp%3A%2F%2Fwww%2Etradingpost%2Ecom%2Eau%3Freferrer%3DnmsnHMetagv1&_t=752643439&_r=hotmailtagline&_m=EXT
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php