OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
php-general Digest 18 May 2008 17:30:35 -0000 Issue 5466

php-general-digest-helplists.php.net
Date: Sun May 18 2008 - 12:30:35 CDT


php-general Digest 18 May 2008 17:30:35 -0000 Issue 5466

Topics (messages 274480 through 274489):

Re: euro currency convert
        274480 by: Lester Caine
        274482 by: Yui Hiroaki
        274483 by: Per Jessen
        274484 by: Brice
        274487 by: Per Jessen

Re: Scripts slowing down?
        274481 by: Per Jessen

Re: urlencode and urldecode
        274485 by: Ólafur Waage

Re: encoding to a file
        274486 by: Ólafur Waage

Loading 2M array crashes program .. but only some of the time
        274488 by: Mary Anderson

XML file locking
        274489 by: Kaja

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

----------------------------------------------------------------------

attached mail follows:


M. Sokolewicz wrote:
> Yui Hiroaki wrote:
>> hi!
>>
>> Does anyone know how to convert euro ?
>>
>> For example;
>>
>> French to German, Italy to French currency
>> so on.
>>
> I must be missing something, but the French Euro is the exact same
> currency as the German Euro, as is the Italian euro. There is nothing to
> convert; 1 euro = 1 euro, regardless of which country (that has the
> euro) you look at.

The European union does such a good job advertising it still nobody
understands it ;)

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

attached mail follows:


You are right!

I would like to know how to convert german currency(old) to Euro currency.

Regards,
Yui

Japanese php deveper

2008/5/18 M. Sokolewicz <tularisphp.net>:
> Yui Hiroaki wrote:
>>
>> hi!
>>
>> Does anyone know how to convert euro ?
>>
>> For example;
>>
>> French to German, Italy to French currency
>> so on.
>>
>>
>> Regards,
>> Yi\ui
>
> I must be missing something, but the French Euro is the exact same currency
> as the German Euro, as is the Italian euro. There is nothing to convert; 1
> euro = 1 euro, regardless of which country (that has the euro) you look at.
>
> - Tul
>

attached mail follows:


Yui Hiroaki wrote:

> You are right!
>
> I would like to know how to convert german currency(old) to Euro
> currency.
>

There was a fixed exchange rate at the time Germany converted. I'm sure
can look it up somewhere. The same goes for the other Euro-countries.

/Per Jessen, Zürich

attached mail follows:


On Sun, May 18, 2008 at 10:34 AM, Per Jessen <percomputer.org> wrote:

> Yui Hiroaki wrote:
>
> > You are right!
> >
> > I would like to know how to convert german currency(old) to Euro
> > currency.
> >
>
> There was a fixed exchange rate at the time Germany converted. I'm sure
> can look it up somewhere.

Maybe there : http://en.wikipedia.org/wiki/Euro

Regards,
Brice Favre

> The same goes for the other Euro-countries.
>
>
> /Per Jessen, Zürich
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


Brice wrote:

> Maybe there : http://en.wikipedia.org/wiki/Euro
>
> Regards,
> Brice Favre

Yes, it's there:

http://en.wikipedia.org/wiki/Euro#History_.281990.E2.80.93present.29

/Per Jessen, Zürich

attached mail follows:


René Leboeuf wrote:

> Per Jessen a écrit :
>
>>>> They _all_ slow down after a while? How many emails are you
>>>> sending in this way?
>>> Some of our mailing are +100.000 emails...
>>
>> There is a possibility that your filesystem is having difficulties
>> dealing with that many files, escpecially if they are all in one
>> directory. Which mailserver and which filesystem are you using?
>
> This is sendmail 8.13.1 (RHEL4) on ext3. We consider moving to
> ReiserFS.
>
> There are 50queues split on 5disks, but it is very rare to have more
> than a total of 3.000mails waiting in the queues.

That should not be a problem then. I use postfix, and I've certainly
had up to 30.000 emails queued without any slow downs.

It sounds like maybe you are back to what someone suggested - due to the
many emails (which is very suspect) you're delivering over SMTP, your
connection is being tarpitted or otherwise artificially slowed down.

What I don't understand is how the same can apply if you just
use /usr/sbin/sendmail to deliver them. That way they should just go
straight in the queue and nothing should be able to slow down that
process - it's just writing a file to disk after all.

I would go back to using sendmail (instead of SMTP), and when the
slowdown begins, I would attach an strace to see what's really going
on.

/Per Jessen, Zürich

attached mail follows:


You can read about apache's mod_include and its echo element.

http://httpd.apache.org/docs/2.2/mod/mod_include.html#element.echo

2008/5/17 Chris W <2wsxdr5cox.net>:
> Whenever you build a query string you need to us the urlencode to encode any
> characters that may be in there that aren't legal for a URL. On the server
> I am using now, when you access values using $_GET['xyz'], it does the
> urldecode for you. I'm not positive, but I am pretty sure, that at one time
> on a server I used in the past, that I had to manually call urldecode to
> decode GET vars. Is there a setting to change this or is it something that
> changed in php in the last few years?
>
> --
> Chris W
> KE5GIX
>
> "Protect your digital freedom and privacy, eliminate DRM, learn more at
> http://www.defectivebydesign.org/what_is_drm"
>
> Ham Radio Repeater Database.
> http://hrrdb.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


This should work as expected.

<?php
$f = fopen("file.txt", "r");
stream_encoding($f, "iso-8859-1");
?>

2008/5/16 J. Manuel Velasco - UBILIBET <techubilibet.com>:
> Hello.
>
> When I create a file I need to specify the encoding to ISO-8859-1, how can i
> do this please ?
>
> I have read about stream:default:encoding() but I am not sure how to use it.
>
> Thanks in advance.
> --
>

attached mail follows:


Hi all,

    I have a php - postgresql program which bombs with a statement that
it has run out of memory. I am running php 5.1.6 and postgres
8.3.something. My program bombs, saying that it fails to allocate
memory, when it is loading an SQL query result into a php array using
pg_fetch_all. The SQL query works fine when I run it in psql. I am
running php with a process limit size of 16M. Some of the time this
query works, sometimes it dies. It is my impression that it dies after
I have been running the php application for a while -- like there is
memory that isn't being cleared up. But that is only an impression!

    What could be going wrong?

attached mail follows:


Does anyone know if any of the PHP 5 XML libraries use flock() internally?
I'd like to use XMLReader and XMLWriter but I need to make sure theres no
writing going on while reading and no more than one writer at time. And if
I have to use DOM, does DOM lock the file when it calls save()?

Or is there any xml library that allows you to pass in an already opened
file stream ?

Thanks.