Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.
I guess this means I do not have pear... right? Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/var/www/garyhotko.com) in /var/www/garyhotko.com/html/Test/test.php on line 2 Warning: main(PEAR.php): failed to open stream: Operation not permitted in /var/www/garyhotko.com/html/Test/test.php on line 2 Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/var/www/garyhotko.com) in /var/www/garyhotko.com/html/Test/test.php on line 2 Warning: main(PEAR.php): failed to open stream: Operation not permitted in /var/www/garyhotko.com/html/Test/test.php on line 2 Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear') in /var/www/garyhotko.com/html/Test/test.php on line 2 On Thu, 30 Sep 2004 18:17:05 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: GH wrote: Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored in my database... The table will have a ID, Title, Author, Image, Content, Date/Time What I would like to have is say someone needs to do a sub heading... I would like to have it automatically be the same subheading format for all of the content... in addition to the formatting... The answer is CSS. Also... I saw one refer to PEAR, since I am on a shared server is there a way to test if pear is available... (never worked with it and am still new to PHP sorry) ?php require('PEAR.php'); ? If that does not give you error, PEAR is installed. Not necessarily all packages. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.
On Wed, 20 Oct 2004 15:01:56 -0400, GH [EMAIL PROTECTED] wrote: I guess this means I do not have pear... right? You can download the PEAR files and put them most anywhere. They don't have to be in the standard location. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.
GH wrote: I guess this means I do not have pear... right? This rather means the server is not configured right. Ask your hosting company to include /usr/share/pear/ in open_basedir, I don't see any reason they shouln't. If they won't anyway install pear in your own webspace and set include_path to contain the pear directory. Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/var/www/garyhotko.com) in /var/www/garyhotko.com/html/Test/test.php on line 2 Warning: main(PEAR.php): failed to open stream: Operation not permitted in /var/www/garyhotko.com/html/Test/test.php on line 2 Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/var/www/garyhotko.com) in /var/www/garyhotko.com/html/Test/test.php on line 2 Warning: main(PEAR.php): failed to open stream: Operation not permitted in /var/www/garyhotko.com/html/Test/test.php on line 2 Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear') in /var/www/garyhotko.com/html/Test/test.php on line 2 On Thu, 30 Sep 2004 18:17:05 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: GH wrote: Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored in my database... The table will have a ID, Title, Author, Image, Content, Date/Time What I would like to have is say someone needs to do a sub heading... I would like to have it automatically be the same subheading format for all of the content... in addition to the formatting... The answer is CSS. Also... I saw one refer to PEAR, since I am on a shared server is there a way to test if pear is available... (never worked with it and am still new to PHP sorry) ?php require('PEAR.php'); ? If that does not give you error, PEAR is installed. Not necessarily all packages. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.
Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored in my database... The table will have a ID, Title, Author, Image, Content, Date/Time What I would like to have is say someone needs to do a sub heading... I would like to have it automatically be the same subheading format for all of the content... in addition to the formatting... Also... I saw one refer to PEAR, since I am on a shared server is there a way to test if pear is available... (never worked with it and am still new to PHP sorry) thanks On Wed, 29 Sep 2004 13:51:41 -0400, GH [EMAIL PROTECTED] wrote: I am looking for the best way to have a user enter information and format it ... i.e. Bold, Italics, etc... with out havng to use the HTML commands... Using PHP4. Any suggestions... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.
GH wrote: Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored in my database... The table will have a ID, Title, Author, Image, Content, Date/Time What I would like to have is say someone needs to do a sub heading... I would like to have it automatically be the same subheading format for all of the content... in addition to the formatting... The answer is CSS. Also... I saw one refer to PEAR, since I am on a shared server is there a way to test if pear is available... (never worked with it and am still new to PHP sorry) ?php require('PEAR.php'); ? If that does not give you error, PEAR is installed. Not necessarily all packages. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.
On Thu, 30 Sep 2004 18:17:05 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: GH wrote: Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored in my database... The table will have a ID, Title, Author, Image, Content, Date/Time What I would like to have is say someone needs to do a sub heading... I would like to have it automatically be the same subheading format for all of the content... in addition to the formatting... The answer is CSS. from what I understand it phpBB works only for BBcode... so how would I be able to make is so that they do not manually have to change the CSS or apply the CSS? Also... I saw one refer to PEAR, since I am on a shared server is there a way to test if pear is available... (never worked with it and am still new to PHP sorry) ?php require('PEAR.php'); ? If that does not give you error, PEAR is installed. Not necessarily all packages. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.
GH wrote: On Thu, 30 Sep 2004 18:17:05 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: GH wrote: Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored in my database... The table will have a ID, Title, Author, Image, Content, Date/Time What I would like to have is say someone needs to do a sub heading... I would like to have it automatically be the same subheading format for all of the content... in addition to the formatting... The answer is CSS. from what I understand it phpBB works only for BBcode... so how would I be able to make is so that they do not manually have to change the CSS or apply the CSS? I'm not sure how you format subheading in bb code, but I guess you will need to modify the function or class that converts bb code to html and change the rule for subheading tag Also... I saw one refer to PEAR, since I am on a shared server is there a way to test if pear is available... (never worked with it and am still new to PHP sorry) ?php require('PEAR.php'); ? If that does not give you error, PEAR is installed. Not necessarily all packages. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.
GH wrote: Are there anyother methods besides BBCode/phpBB that one can use? Especially if I do not have pear available on my host? I'm sure there are. For example you can convert the string using htmlspecialchars, and then convert only allowed tags back: $text = htmlspecialchars($_POST['text']); $replace_to = array('b', '/b'); $replace_from = array(); foreach($replace_to as $tag) { $replace_from[] = htmlspecialchars($tag); } $text = str_replace($replace_from, $replace_to, $text); You can install pear in your account, just unpack the archive and set include_path. On Thu, 30 Sep 2004 18:27:52 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: GH wrote: On Thu, 30 Sep 2004 18:17:05 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: GH wrote: Thank you all for the information... however at a second look I realized that I failed to better describe my needs... My current plan is to have a series of articles and information stored in my database... The table will have a ID, Title, Author, Image, Content, Date/Time What I would like to have is say someone needs to do a sub heading... I would like to have it automatically be the same subheading format for all of the content... in addition to the formatting... The answer is CSS. from what I understand it phpBB works only for BBcode... so how would I be able to make is so that they do not manually have to change the CSS or apply the CSS? I'm not sure how you format subheading in bb code, but I guess you will need to modify the function or class that converts bb code to html and change the rule for subheading tag Also... I saw one refer to PEAR, since I am on a shared server is there a way to test if pear is available... (never worked with it and am still new to PHP sorry) ?php require('PEAR.php'); ? If that does not give you error, PEAR is installed. Not necessarily all packages. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php