Sami Posted October 12, 2011 Share Posted October 12, 2011 I'd like to use BB-codes on my webpage, but can't find any tutorial that I understand.I wish to use HTML_BBCodeParser, as it's already installed at my host's server, but how do I use it? Path: /home/kristfzz/php Link to comment Share on other sites More sharing options...
justsomeguy Posted October 12, 2011 Share Posted October 12, 2011 This is the documentation: http://pear.php.net/...CodeParser.html Looking at that, you probably use setText, parse, and getParsed, or one of the methods that does all 3. There's an article about it here: http://iceteks.com/articles.php/bbcode3/1 Link to comment Share on other sites More sharing options...
Sami Posted October 12, 2011 Author Share Posted October 12, 2011 Warning: require_once(HTML/BBCodeParser.php) [function.require-once]: failed to open stream: No such file or directory in /home/kristfzz/public_html/test.php on line 15Fatal error: require_once() [function.require]: Failed opening required 'HTML/BBCodeParser.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kristfzz/public_html/test.php on line 15 /home/kristfzz/php/html/BBCodeParser.php, maybe? Link to comment Share on other sites More sharing options...
justsomeguy Posted October 12, 2011 Share Posted October 12, 2011 It sounds like either the HTML_BBCodeParser package is not installed, or the PEAR directory is not in the PHP include directory. You'll want to ask your host how to include that file. Link to comment Share on other sites More sharing options...
Sami Posted October 13, 2011 Author Share Posted October 13, 2011 Well, the PEAR package manager in cPanel is actually telling about a directory. (/home/kristfzz/php)There's a directory in it named 'html', so I guess it's there. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.