Re: [PHP] Storing, formatting and displaying data
Use WISIWYG editor, integrate it into your forms and presto, for example, from www.interactivetools.com, that does not work with tables, but you can find one, I think. -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.com - Original Message - From: "Octavian Rasnita" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 20, 2004 8:14 AM Subject: [PHP] Storing, formatting and displaying data > Hi all, > > I would like to create a program that allow users to insert text into a > database, than that text to appear in a web page formatted as HTML. > It is simple to replace the end of line with \n in order to format > that text as html, but I don't know how I could let the users to create > bulleted lists, tables, etc. > > Lets say that the users are admins that I can trust, but they don't know > HTML at all, however, they want to insert a table, or a list, etc. > > Are there any solutions for this? > I am thinking to something like inserting > > COL1##COL2##COL3 > CEL1##CEL2##CEL3 > > > ...for the tables, or something like that, then to make the program > transform this in a true table. > > But maybe there are better solutions. > > Thanks for any ideas. > > Teddy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] for loops performance
Holla, Maybe someone knows how to improve for loops performance? When generating 1000's of pages, it oads in 10-20 seconds. Maybe there is some solution I don't know about? Thanks! -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] for loops performance
Here's: for ($c=1; $c<$numpages; $c++){ echo "$c | "; } When it generates 1-10, it is normal 0.05 s, but often I need more than 1000, so when generating 100's - it is 0.5-1.5 sec., when more than 1000 - > 10+ s. I am thinking on running sopme sort of: 1) generate code of number of pages once a day using cron, 2) store it in database, 3) show static generated code from database. But before doing it I've thought to ask here. -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.com - Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Xongoo!com: Central unit" <[EMAIL PROTECTED]> Cc: "PHP-General" <[EMAIL PROTECTED]> Sent: Saturday, August 21, 2004 7:32 PM Subject: Re: [PHP] for loops performance > On Sat, 2004-08-21 at 12:17, Xongoo!com: Central unit wrote: > > Holla, > > > > Maybe someone knows how to improve for loops > > performance? When generating 1000's of pages, it > > oads in 10-20 seconds. Maybe there is some > > solution I don't know about? > > Give us an example of your for loop that is having efficiency problems. > > Cheers, > Rob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Blog hosting script in php
Hello, Spent two days searching for blog hosting script (where users can register/open their own blogs, manage them, etc.), paid for ExpressionEngine demo, hoping I can configure it for that, but... So, maybe someone knows good blog hosting scripts in php? Best! -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Passing variable on include
Hi, I have to pass variable on include include("includes/include.php"); include("includes/include.php?name=$name"); wouldn't work. How do I do that? Cokies are not an option, btw. -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Passing variable on include
Duh, really, and just read on varianle scopes on php.net. Gotta to sleep for some time :) -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.com - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Xongoo!com: Central unit" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, August 29, 2004 11:41 AM Subject: Re: [PHP] Passing variable on include > Xongoo!com: Central unit wrote: > > Hi, > > > > I have to pass variable on include > > include("includes/include.php"); > > > > include("includes/include.php?name=$name"); > > wouldn't work. > > > > How do I do that? Cokies are not an option, btw. > > Code in includes/include.php is executed in the scope of the including > file, so all variables available at the include() will be available in > the included file. Thus the solution is: > > $name = 'Your Name'; > include("includes/include.php"); > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Weblog -Blog software wrtten in PHP and My SQL
Current trend in my opinion: http://wordpress.org/ -- Tadas Talaikis [EMAIL PROTECTED] http://www.xongoo.com - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 8:28 PM Subject: [PHP] Weblog -Blog software wrtten in PHP and My SQL > Does anyone know of Blog sw available in the marketplace written in PHP and > maybe MySQL? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Weblog -Blog software wrtten in PHP and My SQL
I've used nuike for a year or so, it was hacked 3 times, blog script there is ugly. Wordpress rocks! - Original Message - From: "Vail, Warren" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 9:04 PM Subject: RE: [PHP] Weblog -Blog software wrtten in PHP and My SQL > PHP Nuke includes BLOG's and a lot more (referred to as Journals in the > App). > > http://www.phpnuke.org > > > Warren Vail > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 31, 2004 10:28 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Weblog -Blog software wrtten in PHP and My SQL > > > Does anyone know of Blog sw available in the marketplace written in PHP and > maybe MySQL? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] phpbb multiforums
Holla friends, I have a code which separates phpBB forums, but run into problems because of cookies when *switching between forums*. Should I get rid of cookies entirely (I am rewriting entire code to passing $forum variable) or something may be done (still I am learning php :) Code below: if ($forum==true) { if(is_file("$forum.php")) { setcookie ("forum", $forum, time()+31536000); include("$forum.php"); include($phpbb_root_path . 'common.'.$phpEx); } else { header("Location: index.php"); exit; } } else { include($phpbb_root_path . 'config.'.$phpEx); include($phpbb_root_path . 'common.'.$phpEx); } -- Tadas Talaikis [EMAIL PROTECTED] http://www.vongoo.com (zah! free phpbb forum) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php