hi all
did anybody try PHP speedy for dolphin V6.1 ,
aftering installing it , was requested to add some codes in Index.php file ,
but it didnot work
apparently all Php files should start with :
<?php
but the dolphin index.php file does not start with <?php
it starts with :
<?
i am not expert on PHP , but i gave it ago , didnot work , did anyway manage it ?
zaq
|
<?php is the long version <? is the short version Kids first |
hi killerhaai ,
thank you for your answer , have you tried the php speedy ?, i checked your site and it is pretty fast .
in the script , been asked to do the following ,
How to modify your PHP file
Let's say we are modifying the index.php of a Wordpress 2.3 blog. At the very top of the page you might see something like this at the very top of the page:
<?php get_header(); ?>
We need to add in the PHP Speedy code before that. So you would add this to the very top of the page:
<?php require('/home/xxxx/public_html/xxx/php/php_speedy.php'); ?>
Finally, we must then add one more line of code to the very bottom of the page as follows:
<?php $compressor->finish(); ?>
|
I have doing nothing to this, oke my dedicated server is on one of the fasted internet gates of the Nertherlands, maby tis is the reason for it... :)
Programmers use both, but the advize is to use the long version. Some servers don't like the short version.. Kids first |
Hehe,
php_speedy.php
:)
what are it doing - enabled compression or what ?
|
speed up the site ,
i think it does compress ,
zaq
|
But, enable compression very simple,
open to edit inc\design.inc.php file, line ~492
header( 'Content-type: text/html; charset=utf-8' );
$echo( $templ );
just insert next code before it
ob_start("ob_gzhandler");
One problem (small), this feature depends on hosting params, are it allow this or not, but you can try of course
|
But, enable compression very simple,
open to edit inc\design.inc.php file, line ~492
header( 'Content-type: text/html; charset=utf-8' );
$echo( $templ );
just insert next code before it
ob_start("ob_gzhandler");
One problem (small), this feature depends on hosting params, are it allow this or not, but you can try of course
also you can add the compression level, for example : ob_start("ob_gzhandler", 9);
We only have a unique modules for dolphin! |
Thank you Andrey :-)
I have added this code... seems that my server support it as my site is still running :-)
My site was already fast, now it is a bit faster, displaying pages instantly
Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine. |
PHP speedy doesn't work correctly with dolphin. it requires, as explained on their page, there can be no output buffering (ob_start()) - which dolphin uses in many ways. I would suggest as Aramis has explained above, or compile php with gzip and enable output buffering.
PHP speedy does a lot more, cacheing of javascript and so forth, but I wasn't able to get it working properly.
Chris
|