Yeah, I’m reading Neal Stephenson’s Snow Crash for the first time. All I have to say is if you haven’t read it and are even remotely interested in Sci-fi/Cyberpunk, or your friend’s ex-boyfriend’s mom’s weird yoga teacher knows a guy who’s interested in Sci-fi/Cyberpunk you need to go buy this book immediately.
My favorite line so far:
After that–after Hiro gets onto his motorcycle, and the New South Africans get into their all-terrain pickups, and The Enforcers get into their slick black Enforcer mobiles, and they all go screaming out onto the highway –after that it’s just a chase scene.
Ok, so taken out of context it’s pretty lame – this line ends an intense, minutely detailed sword fight and subsquent escape by Hiro. Eh, you’ll just have to read the damn book, but hopefully it gives you a good dose of the satire and black humor that pervaids this masterfully written novel.
David Spreekmeester 10:37 am on September 17, 2008 Permalink
Hey there, thanks for the advice. Works great, adjusting the include path on the fly like this.
However, my include path was not ending in a semicolumn, so I had to adjust this in zend_include_path.php:
ini_set(‘include_path’, ini_get(‘include_path’).';'.dirname(__FILE__));
britg 12:43 pm on September 17, 2008 Permalink
Interesting – i guess the most extensible solution would be to check if
there is a semicolon and add it if there is not – like your case.
Thanks for sharing
davidcm 7:10 am on October 1, 2008 Permalink
In fact, is better to use the PATH_SEPARATOR constant to determine the character to use. And there is no need to check if the include path ends with it or not, because an empty entry should no affect.
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . dirname(__FILE__));
davidcm 2:10 pm on October 1, 2008 Permalink
In fact, is better to use the PATH_SEPARATOR constant to determine the character to use. And there is no need to check if the include path ends with it or not, because an empty entry should no affect.
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . dirname(__FILE__));