Re: [PHP] Book Sample Code Help

2006-01-24 Thread Poppy Alexandra
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. Hello Jochem It's actually an interesting text with an evil name. I agree the title might sounds suspicious so to answer your

Re: [PHP] Book Sample Code Help

2006-01-24 Thread Poppy Alexandra
it' not to find in the lines 89-91 You missed a " } " at the end of func "getBlock" Hello Björn, Thank you also for your reply. I appreciate your help.  KEEP YOUR CODE CLEAN !! This is sample code from a book. I am interested to know what you mean by clean code (formatting,

Re: [PHP] Book Sample Code Help

2006-01-24 Thread Poppy Alexandra
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

[PHP] Book Sample Code Help

2006-01-24 Thread Poppy Alexandra
Hi all. I am trying to run some PHP code I got from the O'Reilly book Spidering Hacks and it doesn't seem to be working. Please note, the functions were not inculded in the code, I had to copy it from the book so I might have made mistake. I thought perhaps an experienced PHP programmer might b