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

    [greg-dev] set_time_limit - Safe Mode Restriction

    Hi Marco,
    
    done as you said - works perfectly ^^
    
    thanx a lot,
    greets.
    
    Marcus Kimpenhaus
    
    Polsumer Str. 56
    45896 Gelsenkirchen
    
    +49 (209) 9256075
    marcus at kimpenhaus.de
    
    Marco Bonetti schrieb:
    > Here is my suggestion: upgrade to the latest svn revision (949) then
    > define somewhere (in your rss_extra.php, for example)
    > 
    > define ('OVERRIDE_LOCALE', 'de_DE.ISO8859-1');
    > 
    > And things should be sunny again :)
    > 
    > Cheers,
    > 
    >  -m
    > 
    > 
    > On 10/12/05, Marcus Kimpenhaus <marcus at kimpenhaus.de> wrote:
    > 
    >>Me again,
    >>
    >>got it - but it is not really satisfying - arrgh ^^
    >>
    >>Found this on php.net:
    >>
    >>On some systems (at least FreeBSD 4.x) the format for a `locale' is, for
    >>example, ro_RO.ISO8859-2. If you use ro_RO instead setlocale will return
    >>FALSE. Just browse in /usr/share/locale and see what is the name of the
    >>directory holding your `locale' and use that name in your scripts.
    >>
    >>As I mentioned I am hosted by a provider and have no access to the
    >>console - but I knew that de_DE must be ISO8859-1, so I changed the
    >>init.php hardcoded to:
    >>
    >>setlocale(LC_TIME, "de_DE.ISO8859-1");
    >>
    >>and gotcha - it worked - saying: 12. Oktober 2005
    >>
    >>Maybe some ideas about how to fix this permanently??
    >>
    >>Greets,
    >>Marcus.
    >>
    >>Marcus Kimpenhaus
    >>
    >>Polsumer Str. 56
    >>45896 Gelsenkirchen
    >>
    >>+49 (209) 9256075
    >>marcus at kimpenhaus.de
    >>
    >>Marcus Kimpenhaus schrieb:
    >>
    >>>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
    >>>
    >>>_______________________________________________
    >>>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 21:21:23 CEST 2005