Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Biała strona po przeniesieniu na inny serwer
sannin
post 27.04.2009, 17:04:31
Post #1





Grupa: Zarejestrowani
Postów: 308
Pomógł: 13
Dołączył: 31.10.2008

Ostrzeżenie: (0%)
-----


Witam,

właśnie przeniosłem skrypt coppermine na inny serwer (już 3) ale zamiast strony wyświetla mi się biała strona. Skrypt działa jedynie dobrze na serwerze home.pl. Próbowałem już różne wersje php i ciągle to samo... analizując skrypt doszedłem do tego, że wszystko co wpiszę przed
Kod
ob_start('cpg_filter_page_html');

Jeszcze się wyświetla, jeśli jest za tym to pozostaje tylko biała strona.
Kod
function& cpg_filter_page_html( &$html ) {
     return CPGPluginAPI::filter('page_html',$html);
}


Kod
/**
      * CPGPluginAPI::filter()
      *
      * Checks all the plugin's for a given filter key sends the value
      *
      * @param string $filter_name
      * @param variant $value
      * @param boolean [$execute_scope = 'all']
      * @return $value
      **/

     function& filter( $key, $value, $execute_scope = CPG_EXEC_ALL ) {
         global $CPG_PLUGINS,$CONFIG,$USER_DATA,$thisplugin;

         if(is_numeric($execute_scope)) {

             $plugin_id = $execute_scope;

             // Reference current plugin to local scope
             $thisplugin =& $CPG_PLUGINS[$plugin_id];

             // Skip this plugin; the key isn't set
             if (!isset($thisplugin->filters[$key]) || (!$thisplugin->awake)) {
                  return $value;
             }

             // Get the filter's value from the plugin
             $plugin_function = $thisplugin->filters[$key];

             if (function_exists($plugin_function)) {
                 // Pass the value to the filter's function and get a value back
                 $value = call_user_func($plugin_function,$value);

                 // Copy back to global scope
                 //$CPG_PLUGINS[$plugin_id] = $thisplugin;
             }

             // Copy back to global scope
             //$CPG_PLUGINS[$plugin_id] = $thisplugin;

         // Loop through all the plugins
         } else {
             // Get all the plugin ids
             $ids = array_keys($CPG_PLUGINS);

             foreach($ids as $plugin_id) {

                 // Reference current plugin to local scope
                 $thisplugin =& $CPG_PLUGINS[$plugin_id];

                 // Get the filter's value from the plugin
                 if (!isset($thisplugin->filters[$key]) || ($key != 'plugin_wakeup' && !$thisplugin->awake)) {
                     continue;
                 } else {
                     $plugin_function = $thisplugin->filters[$key];
                 }

                 // Skip this plugin; Only looking for new plugins
                 if (($execute_scope == CPG_EXEC_NEW) && ($thisplugin->plugin_id != CPG_EXEC_NEW)) {
                     continue;
                 }

                 if (function_exists($plugin_function)) {
                     // Pass the value to the filter's function and get a value back
                     $value = call_user_func($plugin_function,$value);

                     // Copy back to global scope
                     //$CPG_PLUGINS[$plugin_id] = $thisplugin;
                 }

                 // Copy back to global scope
                 //$CPG_PLUGINS[$plugin_id] = $thisplugin;

                 if ($execute_scope != CPG_EXEC_ALL) {
                     return $value;
                     break;
                 }
             }
         }

         // Return the value back to Coppermine
         return $value;
     }


W internecie znalzłem coś takiego
Kod
ob_start('ob_gzhandler');
header('Content-Type: text/html; charset=UTF-8');

Po dodaniu tego jedynie w operze wyświetlają się jakieś trzy znaczki. Nie bardzo wiem co z tym zrobić, z góry dziękuje za pomoc.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 13:54