1 |
Michael Sullivan wrote: |
2 |
> On Tue, 2006-05-02 at 23:14 -0400, Jim wrote: |
3 |
>> Can anyone recommend a webmail client? I am looking for something more modern than |
4 |
>> SquuirrelMal. I have been using SquuirrelMal, however I find it the interface too old |
5 |
>> and outdated. |
6 |
>> |
7 |
>> I also looking into the code to see if I could freshen it up. From a quick look, the |
8 |
>> code is based on really outdated procedural-style PHP where the code and HMTL is all |
9 |
>> mushed together resulting in a mess like this in compose.php: |
10 |
>> |
11 |
> What other style is there besides procedural? |
12 |
|
13 |
I had the same sort of thought about six months ago when I switched |
14 |
jobs. I handle the infrastructure for a complicated web app now and it |
15 |
is definitely not procedural. I tried to troubleshoot some PHP issues |
16 |
since I had done some minor work like that at the last job for idiot web |
17 |
devs. |
18 |
|
19 |
ws01 site # more index.php |
20 |
<?PHP |
21 |
_load_class('HomePage'); |
22 |
|
23 |
$ui = new HomePage(); |
24 |
$ui->display(); |
25 |
|
26 |
And that's it. Of course you can track class homepage to homepage.class |
27 |
which loads mysql.class, forms.class, not to mention the Smarty |
28 |
framework with templates and the CSS. My days of simple procedural |
29 |
troubleshooting of PHP code intermingled with display code are |
30 |
definitely over. |
31 |
|
32 |
Moving on to the webmail bit, I like Roundcube as well. My personal |
33 |
server is completely overbuilt so it seems as snappy as Squirrel. If |
34 |
you're using PHP 4.4, I'd install pecl-apc which should speed things up |
35 |
greatly. pecl-apc has *issues* with PHP 5.1.x especially if you're using |
36 |
PHP in any sort of object oriented kind of way. I skipped the overly |
37 |
complicated Gentoo ebuild/overlay and installed from source. Works fine |
38 |
with Mysql 5.0 and PHP 5.1.2 if you're that bleeding edge. |
39 |
|
40 |
Roundcube is low on features like shared address books and things you |
41 |
might find in Horde, but has a nice interface. It's also likely to |
42 |
change quite a bit since it's in early beta so it may not be the most |
43 |
stable choice. |
44 |
|
45 |
kashani |
46 |
-- |
47 |
gentoo-user@g.o mailing list |