[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

Re: [PHP] Book Sample Code Help

2006-01-24 Thread David Grant
Poppy, Poppy Alexandra wrote: Parse error: parse error in book-1.php on line 90 Please provide lines 89-91 of book-1.php only please. David -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 -- PHP General

Re: [PHP] Book Sample Code Help

2006-01-24 Thread Jochem Maas
David Grant wrote: Poppy, Poppy Alexandra wrote: Parse error: parse error in book-1.php on line 90 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()

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,

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 Jochem Maas
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.

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