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:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
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 <[EMAIL PROTECTED]>:
> 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
>

--- End Message ---
--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
On Sun, May 18, 2008 at 10:34 AM, Per Jessen <[EMAIL PROTECTED]> 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
>
>

--- End Message ---
--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
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 <[EMAIL PROTECTED]>:
> 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
>
>

--- End Message ---
--- Begin Message ---
This should work as expected.

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

2008/5/16 J. Manuel Velasco - UBILIBET <[EMAIL PROTECTED]>:
> 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.
> --
>

--- End Message ---
--- Begin Message ---
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?

--- End Message ---
--- Begin Message ---
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. 



--- End Message ---

Reply via email to