p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 (http://p2p.wrox.com/forumdisplay.php?f=160)
-   -   bb code in chapter 16 (http://p2p.wrox.com/showthread.php?t=56156)

Jack Goa April 2nd, 2007 09:26 AM

bb code in chapter 16
 
Good day,

I keep getting these errors with the bbcode in the forum example in chapter 16:

Warning: preg_replace(): Unknown modifier 'g' in C:\Path tosite\..\functions.php on line 341

Warning: preg_replace(): Unknown modifier ']' in C:\Path tosite\..\functions.php on line 341

Warning: preg_replace(): Unknown modifier 'b' in C:\Path tosite\..\functions.php on line 341

Warning: preg_replace(): Unknown modifier ']' in C:\Path tosite\..\functions.php on line 341

Warning: preg_replace(): Unknown modifier 'r' in C:\Path tosite\..\functions.php on line 341

Warning: preg_replace(): Compilation failed: unmatched parentheses at offset 12 in C:\Path tosite\..\functions.php on line 341

I am using PHP 4 because of compatibility issues still related with old sites of mine and PHP5.
If this is an issue related to PHP4, anyone have any idea on how I might be able to change the code to make it work?



All times are GMT -4. The time now is 07:52 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.