php-general Digest 26 Jul 2009 14:16:14 -0000 Issue 6250

Topics (messages 295837 through 295845):

Re: This is the kind of [expletives deleted] answer that iscertain to prevent 
bugs being reported.
        295837 by: Paul M Foster
        295840 by: Per Jessen

Re: prepending concatenating assignment operator
        295838 by: LinuxManMikeC

scandir() permissions
        295839 by: kranthi

Re: open source forum
        295841 by: mrfroasty
        295842 by: David Robley
        295843 by: mrfroasty
        295844 by: K. N. Lesmer

Re: Language translation
        295845 by: Phpster

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On Fri, Jul 24, 2009 at 04:07:54PM -0500, Greg Beaver wrote:

> Robert Cummings wrote:
> 
> > I understand where you're coming from, and I've been on the same road
> > before with PHP bug reports. And while I remember being really annoyed,
> > especially when it turned out to actually be a bug, I have to say if you
> > define your case clearly and state where either the documentation isn't
> > clear enough, or the code works in an unexpected fashion, then they will
> > usually give it the due consideration. Don't forget nobody is being paid
> > to handle bug reports, it's all on a volunteer basis and I'm quite
> > certain they get oodles of real bogus bugs.
> 
> Hi,
> 
> I suggest anyone with a casual interest in understanding where php
> developers who respond to bugs are coming from, just read the reports
> and comments as they come through the php-bugs list (php.bugs on the
> news server).
> 
> Watch how many obvious bugs with issues (i.e. bogus bugs) come through,
> and note what the rate of mis-judgements by the devs responding to bugs
> is, it is very very low, but not 0%.
> 
> You'll also notice Jani responds to almost everything, either assigning
> it to someone, or closing the ones he sees as obvious for one reason or
> another.
> 
> You'll also notice that both he and users can be far more acidic than
> the canned responses, and yes - if you have a suggestion for improving a
> canned response, it will be taken seriously.

I have to agree with the canned response. You've got volunteers working
to produce one of the most-used languages on the web. The canned
response saves time and gets the point across-- it's a feature, not a
bug (from the viewpoint of the developers). Cut them some slack.

On the other hand, I disagree with PHPs behavior with respect to the
CLI. I can see that behavior in a web environment, but not with the CLI.
Per's right that in a *nix environment, the default behavior is to honor
the environment locale settings. Having to set the locale within a CLI
is silly and counterintuitive with respect to *nix applications. I can't
speak for Windows here.

Paul

-- 
Paul M. Foster

--- End Message ---
--- Begin Message ---
Robert Cummings wrote:

> Don't forget nobody is being paid to handle bug reports, it's all on a
> volunteer basis and I'm quite certain they get oodles of real bogus
> bugs.

Hi Robert

it's a two-way thing - nobody is paying me to write any bug reports, I'm
also volunteering my time and effort. Not just to PHP, but too quite a
few projects.  Fobbing people off like "jani" did me, is just not
conducive to getting better bugreports nor to improving the project in
general. 

HOWEVER - I've been studying the issue a bit more, and it appears that
it IS indeed the responsibility of the application to call 

setlocale(LC_ALL, "");

to become portable to all locales.  Definitely not what I would have
expected, but it's difficult to ignore the setlocale() man page:

> On startup of the main program, the portable "C" locale is selected as
> default.  A program may be made portable to all locales by calling:
>
>  setlocale(LC_ALL, "");


/Per

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


--- End Message ---
--- Begin Message ---
On Fri, Jul 24, 2009 at 8:53 PM, Daniel Kolbo<kolb0...@umn.edu> wrote:
> Hello,
>
> I know the appending concatenating assignment operator:
> $str_name = "Foobar";
> $str_name .= " Sr";
> echo $str_name;//Foobar Sr
>
> But is there a shortcut assignment operator for prepending concatenation?
>
> $str_name = "Foobar";
> //$str_name =. "Mr ";
> // i know this is not allowed, but is there some shorcut?
> $str_name = "Mr " . $str_name;
> echo $str_name;//Mr Foobar
>
> Just curious.
>
> Thanks,
> dK
> `

No, there is not a "prepend" concatenation operator.

http://www.php.net/manual/en/language.operators.string.php

--- End Message ---
--- Begin Message ---
code:

<?php
$files = scandir('/home/kranthi/downloaded');
var_dump($files);

permissions for the dir:
$ ls -lA
drwxrwxrwx  2 apache  apache
all the files in the directory have permissions
-rw-rw-rw- 1 apache apache

when i run the above code via CLI, with user "kranthi" it is working
as expected.
but if i run the above code via http server (running as user "apache")
i am getting permission denied error. ny ideas ?

Kranthi.

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

I need some advice in picking a PHP forum for a group of people, I know
there are couple of them but could somebody from here give advice on
which one to choose.

***My strongest requirements I need localization support, as that
software might need to be translated into a language other than English.
***Also the software should be a little bit easy to use, interms of
administration as the clients computer literacy isnt so high enough.
***LAMP based software please.... :-)
***ofcourse open source software... :-P

I know this phpBB, but what are other options?I have never played with a
forum before.


Thanks for the input...

GR
mrfroasty

-- 
Extra details:
OSS:Gentoo Linux
profile:x86
Hardware:msi geforce 8600GT asus p5k-se
location:/home/muhsin
language(s):C/C++,VB,VHDL,bash,PHP,SQL,HTML,CSS
Typo:40WPM
url:http://www.mzalendo.net


--- End Message ---
--- Begin Message ---
mrfroasty wrote:

> Hello,
> 
> I need some advice in picking a PHP forum for a group of people, I know
> there are couple of them but could somebody from here give advice on
> which one to choose.
> 
> ***My strongest requirements I need localization support, as that
> software might need to be translated into a language other than English.
> ***Also the software should be a little bit easy to use, interms of
> administration as the clients computer literacy isnt so high enough.
> ***LAMP based software please.... :-)
> ***ofcourse open source software... :-P
> 
> I know this phpBB, but what are other options?I have never played with a
> forum before.
> 
> 
> Thanks for the input...
> 
> GR
> mrfroasty
> 

Have a look at the assortment of forums (fora?) at
http://php.opensourcecms.com/scripts/show.php?catid=5&cat=Forums

They have sandbox sites that you can play with and get a feel for the
application. 


Cheers
-- 
David Robley

After a number of decimal places, nobody gives a damn.
Today is Boomtime, the 61st day of Confusion in the YOLD 3175. 


--- End Message ---
--- Begin Message ---
Thanks I will have a look at those list....

GR
mrfroasty

David Robley wrote:
> mrfroasty wrote:
>
>   
>> Hello,
>>
>> I need some advice in picking a PHP forum for a group of people, I know
>> there are couple of them but could somebody from here give advice on
>> which one to choose.
>>
>> ***My strongest requirements I need localization support, as that
>> software might need to be translated into a language other than English.
>> ***Also the software should be a little bit easy to use, interms of
>> administration as the clients computer literacy isnt so high enough.
>> ***LAMP based software please.... :-)
>> ***ofcourse open source software... :-P
>>
>> I know this phpBB, but what are other options?I have never played with a
>> forum before.
>>
>>
>> Thanks for the input...
>>
>> GR
>> mrfroasty
>>
>>     
>
> Have a look at the assortment of forums (fora?) at
> http://php.opensourcecms.com/scripts/show.php?catid=5&cat=Forums
>
> They have sandbox sites that you can play with and get a feel for the
> application. 
>
>
> Cheers
>   


-- 
Extra details:
OSS:Gentoo Linux
profile:x86
Hardware:msi geforce 8600GT asus p5k-se
location:/home/muhsin
language(s):C/C++,VB,VHDL,bash,PHP,SQL,HTML,CSS
Typo:40WPM
url:http://www.mzalendo.net


--- End Message ---
--- Begin Message ---
On Sun, 26 Jul 2009 14:50:03 +0200
mrfroasty <mrfroa...@gmail.com> wrote:

> Hello,
> 
> I need some advice in picking a PHP forum for a group of people, I
> know there are couple of them but could somebody from here give
> advice on which one to choose.
> 
> ***My strongest requirements I need localization support, as that
> software might need to be translated into a language other than
> English. ***Also the software should be a little bit easy to use,
> interms of administration as the clients computer literacy isnt so
> high enough. ***LAMP based software please.... :-)
> ***ofcourse open source software... :-P
> 
> I know this phpBB, but what are other options?I have never played
> with a forum before.

I can strongly recommend Phorum (http://www.phorum.org/).

> Thanks for the input...
> 
> GR
> mrfroasty
> 
> -- 
> Extra details:
> OSS:Gentoo Linux
> profile:x86
> Hardware:msi geforce 8600GT asus p5k-se
> location:/home/muhsin
> language(s):C/C++,VB,VHDL,bash,PHP,SQL,HTML,CSS
> Typo:40WPM
> url:http://www.mzalendo.net
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


---
Mange venlige hilsner/Best regards

Kim Naim Lesmer
Programmer/Unix systemadministrator

Web    : www.bitflop.com
E-mail : k...@bitflop.com


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




On Jul 25, 2009, at 9:37 PM, Skip Evans <s...@bigskypenguin.com> wrote:

Hey all,

We got a new project and language translation of content is a major priority. I've googled around and seen lots of options, but I'd like to hear from the list about more real world experiences about what some of you found and what both you as a coder and the client were most satisfied with.

Big Hugs,
Skip

--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut

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


Skip,

What type of content are you looking to franslate? Forms or more narrative blog type entries?

How many languages are you looking to support?

From my experience where the app I am involved with does real time translation of forms and essentially builds the forms on the fly, is that translation is a real bottleneck. I lost the vote on this since my goal was to cache out the forms in their individual languages.

The future versions of this type of app will most certainly allow caching of the forms to only do the translation once and only when the form changes require it. It will also use google's translate to translate the form' elements into the defined system languages.

Bastien

Sent from my iPod
--- End Message ---

Reply via email to