php-general Digest 4 Apr 2009 10:02:51 -0000 Issue 6048

Topics (messages 291053 through 291059):

Weird problem with T_gettext()
        291053 by: Michelle Konzack
        291058 by: Per Jessen

Re: rft file problems
        291054 by: Paul M Foster

Re: problem with PHP simplexml and doxygen generated XML
        291055 by: Phpster

filter in phpself()
        291056 by: Michael A. Peters
        291057 by: Michael A. Peters

Re: scheduled task in php IN FIREFOX
        291059 by: Ashley Sheridan

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Hello,

I need some help from german  coders  since  I  have  a  weird  encoding
problem.  Currently I am coding the new website <http://www.tdwave.net/>
and if I do not select any languages in my Webbrowser, it show correctly
english in the "Siteindex" (topmost block).

Now selecting "de" as prefered language is  working,  but  if  I  select
"de_DE" in  Firefox,  the  second  term  "About Us"  is  something  like
"Über Uns" insteed "Über Uns" because the Website is UTF-8.

This is realy weird, since the MO file  is  the  same  for  both  locale
versions.

Any hints or ideas?

Also it is weird, that "php-gettext" does not do a fallback, if  I  have
only "de" and not "de_DE".

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/>                 Michelle Konzack
<http://www.can4linux.org/>                   Apt. 917
<http://www.flexray4linux.org/>               50, rue de Soultz
Jabber [email protected]           67100 Strasbourg/France
IRC #Debian (irc.icq.com)                     Tel. DE: +49 177 9351947
ICQ #328449886                                Tel. FR: +33  6  61925193

Attachment: signature.pgp
Description: Digital signature


--- End Message ---
--- Begin Message ---
Michelle Konzack wrote:

> Now selecting "de" as prefered language is  working,  but  if  I 
> select "de_DE" in  Firefox,  the  second  term  "About Us"  is 
> something like "Über Uns" insteed "Über Uns" because the Website is
> UTF-8. 

Indeed.  I'll venture a guess and say it's because your dictionary file
is bad or not actually UTF8.

> This is realy weird, since the MO file  is  the  same  for  both 
> locale versions.

Ah. Very weird, yes.  Are you doing a setlocale() anywhere? 

> Also it is weird, that "php-gettext" does not do a fallback, if  I 
> have only "de" and not "de_DE".

Fallback to what?  I only have 'de' in my browser language preferences,
and your site came up fine in German.


/Per


-- 
Per Jessen, Zürich (11.7°C)


--- End Message ---
--- Begin Message ---
On Fri, Apr 03, 2009 at 01:18:08PM -0400, tedd wrote:

> Hi gang:
>
> I'm trying to provide an ".rft" file via a link on one of my sites, like 
> so:
>
> <a href="MT_Exam.rft">Mid Term</a>
>
> but clicking the link results in a "Not Found" error.
>
> However, if I change the suffix to .txt, then the file is found, but
> not presented correctly.
>
> What's up with that and what can I do to fix it?
>
> Thanks,
>
> tedd

Just go to webbytedd.com. There's an example there. (Sorry, I couldn't
resist!)

Are you sure you don't mean ".rtf", as in Rich Text Format? If
misspelled that way, it could explain the problem.

Paul

-- 
Paul M. Foster

--- End Message ---
--- Begin Message ---


On Apr 3, 2009, at 17:52, [email protected] wrote:

I have bean trying to right a PHP script to generate XHTML code from the class documentation xml files created by Doxygen(the HTML it outputs is
invalid, messy and virtually imposable to integrate into another web
page). One thing has bean causing problems, the tags which start with `@',
for example:

Code:
 SimpleXMLElement Object
 (
   [...@attributes] => Array
       (
           [kind] => function
           [id] => classhello_1f06929bd13d07b414a8be07c6db88074
           [prot] => private
           [static] => no
           [const] => no
           [explicit] => no
           [inline] => yes
           [virt] => non-virtual
       )
 ...

I cannot seam to find a way to access these with simplexml, the following
code generates a syntax error for example.

Code:

print_r($xml->compounddef->sectiondef->memberdef[1]->@attributes);

Any advice would be gratily appreciated.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


What about first stripping out the @ characters with str_replace and then attempting to load the XML? Maybe run it thru a few to do the best possible clean up?

Bastien
--- End Message ---
--- Begin Message ---
I was looking over the output of phpfilter() and say the following:

Input Validation and Filtering  enabled
Revision                        $Revision: 1.52.2.45 $

I did recently (very recently) upgrade from php 5.2.5 to 5.2.9 and also upgraded my php pear to 1.7.2 (from whatever CentOS 5.2 had) - but I don't think pear stuff is shown in phpinfo()

I don't recall seeing that before. Is it new, and is it worth looking into using it in place of (or in addition to) HTML Purifier?
--- End Message ---
--- Begin Message ---
Michael A. Peters wrote:
I was looking over the output of phpfilter() and say the following:

Input Validation and Filtering    enabled
Revision            $Revision: 1.52.2.45 $

I did recently (very recently) upgrade from php 5.2.5 to 5.2.9 and also upgraded my php pear to 1.7.2 (from whatever CentOS 5.2 had) - but I don't think pear stuff is shown in phpinfo()

I don't recall seeing that before. Is it new, and is it worth looking into using it in place of (or in addition to) HTML Purifier?


Nevermind - I found the php manual for it.
It has some useful stuff - IE FILTER_VALIDATE_EMAIL and FILTER_VALIDATE_INT that will reduce some of my code.
--- End Message ---
--- Begin Message ---

On Fri, 2009-04-03 at 16:20 +0100, Stuart wrote:
> 2009/4/3 Andrew Williams <[email protected]>:
> > That is a better idea but the program needs about five minutes to complete.
> > Would that not be a problem?
> 
> No more so that it would be in a browser.
> 
> -Stuart
> 
> > On Fri, Apr 3, 2009 at 2:44 PM, Stuart <[email protected]> wrote:
> >>
> >> Please include the list when replying.
> >>
> >> 2009/4/3 Andrew Williams <[email protected]>:
> >> > interval update
> >>
> >> I'm sorry, and that means what exactly?
> >>
> >> Assuming you just need to hit a certain URL periodically you just need
> >> to use curl or similar. There's no need to get a browser involved.
> >>
> >> -Stuart
> >>
> >> > On Fri, Apr 3, 2009 at 2:05 PM, Stuart <[email protected]> wrote:
> >> >>
> >> >> 2009/4/3 Andrew Williams <[email protected]>:
> >> >> > HOW DO YOU CONFIGURE scheduled task to use firefox instead of
> >> >> > Internet
> >> >> > Explorer
> >> >>
> >> >> Why is a scheduled task using a browser at all? What is the task doing?
> >> >>
> >> >> -Stuart
> >> >>
> >> >> --
> >> >> http://stut.net/
> >> >
> >> >
> >> >
> >> > --
> >> > Best Wishes
> >> > Andrew Williams
> >> >
> >> >
> >> >
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >
> >
> >
> > --
> > Best Wishes
> > Andrew Williams
> >
> >
> >
> 
What about using wget or its Windows equivalent? The tool is built for
requesting things from a command line, so is very easy to plug into a
bash or batch script.


Ash
www.ashleysheridan.co.uk


--- End Message ---

Reply via email to