Previous Thread
Next Thread
Print Thread
Hop To
#32700 10/16/2000 11:40 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I realize that with the announcement of the PHP port there will probably be questions regarding this. So, instead of cluttering up the other forums I figured I would create a new board just for comments/questions regarding this.

---
Scream
<A HREF="http://www.wcsoft.net" target="_new">http://www.wcsoft.net</A>

#32701 10/17/2000 12:42 AM
Anonymous
Unregistered
Anonymous
Unregistered
uhm.....

whoooo hoooo!!!!!!

--------------
your ad here! adspace@extremeforums.org
<A HREF="http://www.extremeforums.org" target="_new">http://www.extremeforums.org</A>

#32702 10/17/2000 4:02 AM
Anonymous
Unregistered
Anonymous
Unregistered
Thank you Scream!!!!

Do you have a guestimation on how long until beta ?

Will

#32703 10/17/2000 11:21 AM
Anonymous
Unregistered
Anonymous
Unregistered
Do you know who's working on the conversion, WWWThreads people or ? Is there a way to have it done faster ($$$)? Can I help?

#32704 10/17/2000 11:33 AM
Anonymous
Unregistered
Anonymous
Unregistered
Erm....Scream is WWWThreads people <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" /> . And seeing as how it's his program, I think it's him who's doing it. <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" />
Strange thing is, I actually wondered about the PHP version this morning, and then voila! he's already working on it.
I know PHP is the latest and greatest thing, Scream, but what advantages can it give us over Perl, except for the fact that some people just want or only have PHP? (Which is very hard to believe in this day and age)

#32705 10/17/2000 11:59 AM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
At this point I would hate to even take a guess on a timeline. Just keep watching the changelog. I'll post the url to the development site once I get a little further along.

---
Scream
<A HREF="http://www.wcsoft.net" target="_new">http://www.wcsoft.net</A>

#32706 10/17/2000 12:00 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
LoneVVolf is correct. WWWThreads people is me;). Converting actually has been going pretty smooth, much faster than I had originally thought anyways. In a couple hours yesterday I got about 5 scripts ported over.

---
Scream
<A HREF="http://www.wcsoft.net" target="_new">http://www.wcsoft.net</A>

#32707 10/17/2000 12:04 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I'll admit that my knowledge in PHP is limited, but from what I can tell it is a pretty easy language to work with. The main benefit is that PHP is a server module, so unlike perl it doesn't have to fire up a seperate process to compile the script and execute it. So, speed is a big factor.

I'll probably have more opinions about it in the near future. And someone else might be able to give a better answer on the benefits.

---
Scream
<A HREF="http://www.wcsoft.net" target="_new">http://www.wcsoft.net</A>

#32708 10/17/2000 1:19 PM
Anonymous
Unregistered
Anonymous
Unregistered
Let me give you a good example of why it's good to use PHP..

The forum I use to run got so many hits that it crashed constantly.. It was mostly because sooo many instances of perl executing that my machine would slow way down and the db couldn't handle it etc..

PHP only has one instance, it runs from the server level.. So it keeps things speedy and crashes less on an active forum.. (That means 100 hits at once, doesn't cause perl to run 100 times on your server, executing the same file..)

Also I think PHP can keep a persistent connection to the db where as Perl can't (Maybe mod_perl?) which cuts down on all of the db activity..

I still think Perl is a lot more fun to develop in though.. Especially when you start doing OO stuff (adds some spice to the same old boring Perl stuff) =)

Jeremy 'PeelBoy' Amberg

#32709 10/17/2000 2:53 PM
Anonymous
Unregistered
Anonymous
Unregistered
Ok, I'm not getting it.

PHP has an apache module - mod_php.
Perl has an apache module - mod_perl.

Neither require spawning external processes to byte compile the scripts. They are read in once at init, and you go.

The apache benchmarking tool has shown WWWThreads 4.4.1 capable of handline 100 page requests/second of wwwthreads.pl w/3 categories and 20 forums on a 360 Mhz Solaris 2.7 machine running apache 1.3.9 and mod_perl.

This can be scaled up fairly quickly using a seperate machine for the MySQL server from the web server and using a non DNS based load balancer.

Don't get me wrong, PHP has it uses. I looked at using a number of PHP boards before settling on WWWthreads last year. WWWThreads was by far the superior solution. It had the richest feature set provided and the cleanest UI PLUS its backed by MySQL. For the life of me I can't figure out why so many sites use UBB...

I question your rationale of claiming that WWW threads needs to be ported for speed considerations.

#32710 10/18/2000 3:08 AM
Anonymous
Unregistered
Anonymous
Unregistered
From a resource perspective PHP is much easier on the system then mod_perl/mysql. PHP was designed to work with mysql and allows a lot of cool features in that arena. I am not sure why its less resource intensive, but I know it is based on performance testing we've done using wwwthreads and other php message boards.

There was also an article in a linux magazine recently about memory leaks using constant connections in mod_perl and mysql. We've been experiencing this for a while and never could figure out what the problem is. We have very active boards (20,000 members).

Other notes, if you are using a site with PHP this opens the doors to fully integrate wwwthreads into everything else on your site. That is the biggest benefit to us. Perl cannot print out php, so all of our headers/footers and php code had to be hacked to work with wwwthreads in the past. Now it can be seamless.

Thanks again for porting!
Will

#32711 10/18/2000 3:11 AM
Anonymous
Unregistered
Anonymous
Unregistered
Well.. You are right, but there are also other things that come in to play..

There are -some- set backs to using mod_perl (like if your code isn't written with mod_perl in mind it might not run as expected.. global vars stay in memory etc.. was wwwthreads writen to take mod_perl into account?)

You have to also remember that some people who have the ability to run PHP might not have the ability to run Perl (don't ask me why, but I'm sure this is true for somebody out there)

I do remember reading through wwwthreads source and seeing comments like "this feature doesn't work under mod_perl" etc...

Also I think that if wwwthreads was written in PHP it would make it 10x easier to hack the layout of your forum..

Since PHP is embeded into HTML like ASP it keeps the HTML code cleaner looking and easier to change where as perl the HTML code usually looks very ugly....

Once again.. Don't get me wrong.. I love perl.. I write perl for a living..

Oh and about the UBB comment... I agree.. try vbulletin <A HREF="http://www.vbulletin.com" target="_new">http://www.vbulletin.com</A> it's not as good as wwwthreads, but it's a decent php forum that copies UBB's style (I hate not having threaded view though)

Jeremy 'PeelBoy' Amberg

#32712 10/17/2000 4:07 PM
Anonymous
Unregistered
Anonymous
Unregistered
Off Topic:
>>I still think Perl is a lot more fun to develop in though.. Especially when you start doing OO stuff (adds some spice to the same old boring Perl stuff) =)

Do tell about 'doing OO stuff' - it sounds exciting. I love Perl. There's something very satisfying about it that I think I'm going to miss if I switch to php...

<img src="http://www.amdragon.com/images/eileensig.gif" alt=" - " />

#32713 10/17/2000 4:11 PM
Anonymous
Unregistered
Anonymous
Unregistered
>>I do remember reading through wwwthreads source and seeing comments like "this feature doesn't work under mod_perl" etc...

Some of my hacks such as the on-the-fly Language Switcher won't work with mod_perl because of its being compiled up front. Will switching to php mean that everybody will now be able to use it?

<img src="http://www.amdragon.com/images/eileensig.gif" alt=" - " />

#32714 10/17/2000 4:23 PM
Anonymous
Unregistered
Anonymous
Unregistered
Why wouldn't it work with mod_perl?

(I dunno haven't taken a look at it yet..)

I'm sure it would be -possible- to make it work with mod_perl, wouldn't it?

I dunno if it would work in php or not, but I don't see why it wouldn't.. Of course you will have to re-write it though =)

------------------------------------------------
Jeremy 'PeelBoy' Amberg

#32715 10/17/2000 4:34 PM
Anonymous
Unregistered
Anonymous
Unregistered
In perl you can write the .pm (packages) to be object oriented. (like C++ or Java)..

If you have O'Reilly's "Programming Perl" book read page 289 (2nd edtion)

Or grab "Object Oriented Perl" by Damian Conway that is a very good book (has a lot of info about object oreinted programing in general and how it applies to perl).

I'm still learning or I would go into more details.. Read up on some of the cocepts of OOP to see the pluses of using it <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Oh, another thing.. writing perl object oriented perl modules is suppose to make it a little bit slower, so that is the down side <img border="0" title="" alt="[Frown]" src="images/icons/frown.gif" />

------------------------------------------------
Jeremy 'PeelBoy' Amberg

#32716 10/17/2000 4:55 PM
Anonymous
Unregistered
Anonymous
Unregistered
I do not have any hard facts but my web hosting company told me they think php based forums are easier on the server then perl based forum.

All I know is wwwthreads is the best forum around and a PHP version would be a dream for me since I have tons of PHP knowledge and almost zero perl skills.


<A HREF="http://www.flyin.com" target="_new">http://www.flyin.com</A>

#32717 10/17/2000 5:05 PM
Anonymous
Unregistered
Anonymous
Unregistered
I have tons of PHP knowledge and almost zero perl skills.

I think this is one of the real driving factors for a lot of the people that make the most noise out there <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" /> . I've seen so many things rewritten over the years in the new maintainer's favorite language that it's amazing. Don't get me wrong, I'm not against the PHP version and I'll switch if it provides a better solution. But that's the real key for me, I'll choose whichever provides the most benefit.

Lee.

#32718 10/17/2000 5:06 PM
Anonymous
Unregistered
Anonymous
Unregistered
Nope. Apparently all the variables are hewn in stone. They tell me that once you've set them up front, that's it.

Have a look at the row of flags at <A HREF="http://www.amdragon.com/cgi-bin/wwwthreads/wwwthreads.pl?Cat=" target="_new">Amdragon</A>. If you click the French flag, the whole board switches over to French instantly. Then click the German flag and everthing goes German. Could php handle that?

<img src="http://www.amdragon.com/images/eileensig.gif" alt=" - " />

#32719 10/17/2000 5:07 PM
Anonymous
Unregistered
Anonymous
Unregistered
Actually I think you can make perl print out PHP hehe.. but why would you want too? =) just make the server run the perl first, then have it parse the output for PHP code before it prints it to the client.. ugh.. not the best idea <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" /> I bet if you edit the http.conf file and add .pl or .cgi as an ext for php it would work =) (dunno though I haven't tried it)

------------------------------------------------
Jeremy 'PeelBoy' Amberg

#32720 10/17/2000 5:11 PM
Anonymous
Unregistered
Anonymous
Unregistered
Hmmm.. I'm sure it could with some work..

I'm sure mod_perl could also, but maybe it would just take a lot of thinking to figure out a different way of doing it so that mod_perl wouldn't freak out? I dunno.. Anything is possible, but I guess not everything is feasible huh? <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

err I mean it's possible but probably not feasible (like.. it might require re-writing how la nuages are handled....etc.. dunno.. but I know it can be done hehe)

Does it not work because language vars are global? (ugh)

------------------------------------------------
Jeremy 'PeelBoy' Amberg<P ID="edit"><FONT SIZE=-1><EM>Edited by PeelBoy on 10/17/00 02:14 PM.</EM></FONT>

#32721 10/17/2000 5:18 PM
Anonymous
Unregistered
Anonymous
Unregistered
Sounds to me like you're saying - in a roundabout way - that NO, php can't handle it either! Umnn - so what's with these supposedly 'improved' languages!?!

I want somrthing that offers *more* not less...

<img src="http://www.amdragon.com/images/eileensig.gif" alt=" - " />

#32722 10/17/2000 5:34 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
php would allow you to have the language switcher in it. You don't have the pre-compiling that you do with mod_perl.

Mod_perl pre-compiles all declared .pm files. And since w3t.pm needs to have language files it compiles those in at startup. That is why you can't switch languages. Under normal perl it checks the cookie each time w3t.pm is compiled (oncer per script) and compiles the proper language for that one instance.

---
Scream
<A HREF="http://www.wcsoft.net" target="_new">http://www.wcsoft.net</A>

#32723 10/17/2000 5:37 PM
Anonymous
Unregistered
Anonymous
Unregistered
The dbi interface that perl uses to connect to db's..

when you say

$dbh = DBI -> connect();

You are creating an object called $dbh, or an "instance" of the DBI class.

Anything you do to $dbh effects that object..

So now when you want to make a query to that db, you use $dbh..

$blah = $dbh -> prepare ("SELECT .....");

and now you can execute the $blah object to get the results.. etc..

You can create multiple db connections and store them in different objects
and then do queries on which ones you please..

Something like that anyway..

------------------------------------------------
Jeremy 'PeelBoy' Amberg

#32724 10/17/2000 5:40 PM
Anonymous
Unregistered
Anonymous
Unregistered
Scream is right..

I wasn't saying it isn't possible in PHP.. I'm pretty sure it IS possible (with out any weird hacks) but since I don't know 100% about how it works and stuff, I wasn't sure if it would work in PHP or not (so I kept my big mouth closed so I don't look like a fool.. I'm good at that) =)

What I was saying is that you can get it to work with mod_perl, but probably not with out doing some major hacks on the way languages currently work <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" /> (in other words, it's possible but not feasible)

------------------------------------------------
Jeremy 'PeelBoy' Amberg

#32725 10/17/2000 5:44 PM
Anonymous
Unregistered
Anonymous
Unregistered
Why does my web host for a dedicated Cobalt RAQ say
"a php based forum will be easier on the server then a perl based forum"

Is PHP easier on the server then perl when there are a lot of hits.
<A HREF="http://www.flyin.com" target="_new">http://www.flyin.com</A>

#32726 10/17/2000 5:53 PM
Anonymous
Unregistered
Anonymous
Unregistered
Yes, but I'm not sure about mod_perl..

For every hit your server gets, another instance of perl is started (so that it can execute the cgi file that the user requested)..

mod_perl and php are both run from the apache server level, and a new instance isn't started for each hit you get. Everything is already there and running..

That probably helps free up quite a bit of memory for the server when you have a heavy load also.

I'm sure there is a bunch of other stuff too that I don't know about.. I just know the basics of it :\

------------------------------------------------
Jeremy 'PeelBoy' Amberg

#32727 10/17/2000 5:54 PM
Anonymous
Unregistered
Anonymous
Unregistered
YESSSSSS!!!!

>>php would allow you to have the language switcher in it.

Count me in - big time. It can't happen soon enough. <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

<img src="http://www.amdragon.com/images/eileensig.gif" alt=" - " />

#32728 10/17/2000 5:57 PM
Anonymous
Unregistered
Anonymous
Unregistered
You sure muddied the water though... <img border="0" title="" alt="[Roll Eyes]" src="images/icons/rolleyes.gif" />

<img src="http://www.amdragon.com/images/eileensig.gif" alt=" - " />

#32729 10/17/2000 5:58 PM
Anonymous
Unregistered
Anonymous
Unregistered
It can't happen soon enough.

Minus of course the real 5.1 release <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" /> . And I now have a moderated forum, so admin changes are welcome too!

Lee.

#32730 10/17/2000 5:59 PM
Anonymous
Unregistered
Anonymous
Unregistered
..

------------------------------------------------
Jeremy 'PeelBoy' Amberg

#32731 10/17/2000 6:03 PM
Anonymous
Unregistered
Anonymous
Unregistered
Hey, we attracted Scream's attention - and that's what counts. <img src="http://www.amdragon.com/images/icons/devil.gif" alt=" - " />

<img src="http://www.amdragon.com/images/eileensig.gif" alt=" - " />

#32732 10/17/2000 6:05 PM
Anonymous
Unregistered
Anonymous
Unregistered
Ahh... Good team work! *high-five!*

------------------------------------------------
Jeremy 'PeelBoy' Amberg

#32733 10/17/2000 6:19 PM
Anonymous
Unregistered
Anonymous
Unregistered
[big fat grin] Now there a thought - anybody got a 'high five' Smiley?

<img src="http://www.amdragon.com/images/eileensig.gif" alt=" - " />

#32734 10/17/2000 6:42 PM
Anonymous
Unregistered
Anonymous
Unregistered
ya technically laguange switching could be done on the fly without a doubt. someone at vb was working on a way to switch all the text on the fly. like this post in spanish. but i don't think it went that far.

and lastly i wanna integrate wwwthreads (perl for now), with phpnuke.org somehow. just the user base at least.

--------------
your ad here! adspace@extremeforums.org
<A HREF="http://www.extremeforums.org" target="_new">http://www.extremeforums.org</A>

#32735 10/17/2000 10:28 PM
Anonymous
Unregistered
Anonymous
Unregistered
It'll probably be my *first* phpW3T hack!

<img src="http://www.amdragon.com/images/eileensig.gif" alt=" - " />


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 522 guests, and 99 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)