Page 2 of 2

Posted: Thu Mar 03, 2005 3:37 pm
by feyd
stop editing the post you are making it worse. You can only post so much data at a time on this board.. chop the file up into several chunks.. sheesh

Posted: Thu Mar 03, 2005 3:41 pm
by smpdawg
Phenom - Agreed. That code could be reduced dramatically by using some CSS and ...

Posted: Thu Mar 03, 2005 3:44 pm
by jmueller0823
It was me (shoot me!) No offense taken.

I guess the page was designed for visual appeal-- not performance.

The php url is my site.
Why include the pages via URL...
Feyd, what is the alternative?
Have you looked at any of the PHP optimizers like PHP-Accelerator, etc? Do you have compression turned on for the output?
Not aware of these. These are on the server?

As far as php code is there-- several includes from our psDynamic script.

We're missing the very bottom of the code which is (mostly) Webtrends code.

[/quote]

Posted: Thu Mar 03, 2005 3:47 pm
by John Cartwright
I guess the page was designed for visual appeal-- not performance.
I have never once in my days heard from from an HTML standpoint :P.
You should seriously look into CSS....

after visiting your site, it does not seem that you have a lot of content.. must be how it is processed.

Posted: Thu Mar 03, 2005 3:48 pm
by feyd
the includes should be local includes when on your own server.. I'd seriously suggest redesigning to use span and div elements and CSS.. that should seriously reduce the file size alone.

Posted: Thu Mar 03, 2005 3:49 pm
by jmueller0823
Time to study up on CSS.

We're using CSS in a limited way (font syles, table attributes, etc.)
Would CSS reduce the table clutter?

Posted: Thu Mar 03, 2005 3:51 pm
by jmueller0823
feyd
the includes should be local includes when on your own server.. I'd seriously suggest redesigning to use span and div elements and CSS.. that should seriously reduce the file size alone.
Point taken.

What do you mean be "local" includes? Elaborate please.

Posted: Thu Mar 03, 2005 3:54 pm
by feyd
local file system.. include('/home/your_server_path/php/psDynamic/psDynamic.php');

I'd convert whatever is inside that script to a function or set of functions, so you only have to include it once at the top of the page, then just call the function with $command and $cid or whatever..

Posted: Thu Mar 03, 2005 5:11 pm
by jmueller0823
feyd
I'd convert whatever is inside that script to a function or set of functions, so you only have to include it once at the top of the page, then just call the function with $command and $cid or whatever..
Is this topic covered on these forums somewhere? Thanks.

Posted: Thu Mar 03, 2005 5:32 pm
by feyd
not especially..

Posted: Thu Mar 03, 2005 10:29 pm
by Silver_Girl
you say you are getting "MySQL too many connections open" errors?

are you closing your db connections?

this can really slwo things down.

not to mention, as many people have there is no need for this table structure, and if CSS isn't something you know that much about or want to takle right now, try optimising your html. you can get the same result with WAY fewer tables.