• Previous message: [greg-dev] set_time_limit - Safe Mode Restriction
  • Next message: [greg-dev] set_time_limit - Safe Mode Restriction
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    [greg-dev] set_time_limit - Safe Mode Restriction

    Hi Marco,
    
    I found the lines in the code where you set the locale value in the init.php
    
    Unfortunately my server is hosted by a provider - so I have to search a
    little bit to figure out why the locale isn't set correctly.
    
    Maybe some output will help to find it ^^
    
    Thanx for your help.
    
    Greets,
    Marcus.
    
    Marcus Kimpenhaus
    
    Polsumer Str. 56
    45896 Gelsenkirchen
    
    +49 (209) 9256075
    marcus at kimpenhaus.de
    
    Marco Bonetti schrieb:
    > Marcus,
    > 
    > I don't think depends on the the PHP version (we're using setlocale(),
    > which has been in php since PHP3 -
    > http://php.benscom.com/manual/en/function.setlocale.php )
    > 
    > You could try and reset the date label to the defaul, maybe that'll fix things.
    > 
    > Oh, and you're supposed to have your server's locales properly
    > installed. Maybe it's an optional *BSD port you haven't installed?
    > 
    > 
    >  -m
    > 
    > 
    > On 10/12/05, Marcus Kimpenhaus <marcus at kimpenhaus.de> wrote:
    > 
    >>Hi Marco,
    >>
    >>is it possible that you are running PHP5 on your Mac?
    >>Maybe its a new feature of PHP5 - I've not worked with it until now.
    >>
    >>My server is running php 4.3.11 on FreeBSD 4.7-RELEASE #0
    >>In the config I use following date-format: j. F Y, H:i
    >>
    >>Maybe the format is it - I am not sure :-/
    >>
    >>Greets,
    >>Marcus
    >>
    >>Marcus Kimpenhaus
    >>
    >>Polsumer Str. 56
    >>45896 Gelsenkirchen
    >>
    >>+49 (209) 9256075
    >>marcus at kimpenhaus.de
    >>
    >>Marco Bonetti schrieb:
    >>
    >>>Marcus, glad you're feeling better :)
    >>>
    >>>I've committed the set_time_limit changes you suggested, I guess they
    >>>make sense.
    >>>
    >>>As for the i18-ed dates... it's supposed to work! On my system (OS X
    >>>10.4.2), if I set the language to German, the first item date reads
    >>>"Veroeffentlicht: Oktober 12, 2005".
    >>>
    >>>Am I missing something?
    >>>
    >>> -m
    >>>
    >>>
    >>>
    >>>On 10/12/05, Marcus Kimpenhaus <marcus at kimpenhaus.de> wrote:
    >>>
    >>>
    >>>>Hi,
    >>>>
    >>>>sorry for being absent for a few weeks - but after a trip to Lisbon I
    >>>>had some stomach flu - happy feeling better now ,-)
    >>>>
    >>>>I recently updated to the new svn trunk (release 0.5.3 revision# 947).
    >>>>
    >>>>What I recognized was - when I updated my feeds - that there was a safe
    >>>>mode warning - caused by the set_time_limit in the /cls/update.php
    >>>>
    >>>>I've added a small diff file containing a fix for this part.
    >>>>
    >>>>set_time_limit(0); --> @set_time_limit(0);
    >>>>
    >>>>Hope this meets the coding standards ^^
    >>>>
    >>>>Another point I'd like to add is a new feature - I guess.
    >>>>And it's about i18n again - what else ^^
    >>>>
    >>>>php itself unfortunately does not translate days and months - what about
    >>>>translating them - equal to wordpress??
    >>>>
    >>>>Greets,
    >>>>Marcus
    >>>>
    >>>>
    >>>>--
    >>>>Marcus Kimpenhaus
    >>>>
    >>>>Polsumer Str. 56
    >>>>45896 Gelsenkirchen
    >>>>
    >>>>+49 (209) 9256075
    >>>>marcus at kimpenhaus.de
    >>>>
    >>>>
    >>>>Index: admin/channels.php
    >>>>===================================================================
    >>>>--- admin/channels.php  (revision 946)
    >>>>+++ admin/channels.php  (working copy)
    >>>>@@ -430,7 +430,7 @@
    >>>>            $opmlfid = getRootFolder();
    >>>>               }
    >>>>
    >>>>-        set_time_limit(0);
    >>>>+        @set_time_limit(0);
    >>>>               @ini_set('max_execution_time', 300);
    >>>>
    >>>>               // Parse into and OPML object
    >>>>Index: cls/update.php
    >>>>===================================================================
    >>>>--- cls/update.php      (revision 946)
    >>>>+++ cls/update.php      (working copy)
    >>>>@@ -59,7 +59,7 @@
    >>>>               $this->populate();
    >>>>
    >>>>               // Script timeout: ten seconds per feed should be a good upper limit
    >>>>-               set_time_limit(0);
    >>>>+               @set_time_limit(0);
    >>>>               @ini_set('max_execution_time', (10 * count($this->chans) + 300));
    >>>>       }
    >>>>
    >>>>
    >>>>
    >>>>_______________________________________________
    >>>>gregarius-dev mailing list
    >>>>gregarius-dev at sinless.org
    >>>>http://sinless.org/mailman/listinfo/gregarius-dev
    >>>>
    >>>>
    >>>>
    >>>
    >>>
    >>>_______________________________________________
    >>>gregarius-dev mailing list
    >>>gregarius-dev at sinless.org
    >>>http://sinless.org/mailman/listinfo/gregarius-dev
    >>
    >>_______________________________________________
    >>gregarius-dev mailing list
    >>gregarius-dev at sinless.org
    >>http://sinless.org/mailman/listinfo/gregarius-dev
    >>
    > 
    > 
    > _______________________________________________
    > gregarius-dev mailing list
    > gregarius-dev at sinless.org
    > http://sinless.org/mailman/listinfo/gregarius-dev
    
    Posted by Marcus Kimpenhaus [reply] at Wed Oct 12 20:39:21 CEST 2005