PHP Speedy for Dolphin 6.1

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

Quote · 11 Oct 2008

<?php is the long version
<? is the short version

Kids first
Quote · 11 Oct 2008

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();
?>

 

Quote · 11 Oct 2008

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
Quote · 11 Oct 2008

Hehe,

php_speedy.php

:)

what are it doing - enabled compression or what ?

Quote · 13 Oct 2008

speed up the site ,

 

i think it does compress ,

 

zaq

Quote · 13 Oct 2008

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

Quote · 14 Oct 2008

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!
Quote · 14 Oct 2008

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 Cool

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 14 Oct 2008

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

Quote · 14 Oct 2008
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.