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

2008-05-18 Thread php-general-digest-help
php-general Digest 18 May 2008 17:30:35 - 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

Re: [PHP] Re: euro currency convert

2008-05-18 Thread Lester Caine
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

Re: [PHP] Re: Scripts slowing down?

2008-05-18 Thread Per Jessen
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

[PHP] Re: euro currency convert

2008-05-18 Thread Yui Hiroaki
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

Re: [PHP] Re: euro currency convert

2008-05-18 Thread Per Jessen
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 -- PHP

Re: [PHP] Re: euro currency convert

2008-05-18 Thread Brice
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.

Re: [PHP] urlencode and urldecode

2008-05-18 Thread Ólafur Waage
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

Re: [PHP] encoding to a file

2008-05-18 Thread Ólafur Waage
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

Re: [PHP] Re: euro currency convert

2008-05-18 Thread Per Jessen
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Loading 2M array crashes program .. but only some of the time

2008-05-18 Thread Mary Anderson
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.

[PHP] XML file locking

2008-05-18 Thread Kaja
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

Re: [PHP] Loading 2M array crashes program .. but only some of the time

2008-05-18 Thread Ólafur Waage
Are you using a persistent connection? 2008/5/18 Mary Anderson [EMAIL PROTECTED]: 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

Re: [PHP] fsockopen + fputs

2008-05-18 Thread Stut
On 16 May 2008, at 00:04, debussy007 wrote: I use fsockopen and fputs to call a distant URL, but I have the following error : The requested URL /registration/test was not found on this server. This is my code: $req = 'username=' . $usr . 'password=' . $pass . 'date_of_birth='

[PHP] sql syntax using sprintf

2008-05-18 Thread Sudhakar
until i started using the techniques for avoiding sql injection, i have been using a normal insert and select sql query which worked fine. i have a registration page where a user enters their username and if this already exists i display a message by executing a select query and if the username

[PHP] syntax of sprintf

2008-05-18 Thread Sudhakar
until i started using the techniques for avoiding sql injection, i have been using a normal insert and select sql query which worked fine. i have a registration page where a user enters their username and if this already exists i display a message by executing a select query and if the username

Re: [PHP] syntax of sprintf

2008-05-18 Thread Ólafur Waage
Try this one $sSQL = sprintf(SELECT username FROM individuals WHERE username='%s', mysql_real_escape_string($username)); $query = mysql_query($sSQL); if($query !== false) { // do something } 2008/5/18 Sudhakar [EMAIL PROTECTED]: until i started using the techniques for avoiding sql injection, i

[PHP] Re: fsockopen on ssl://

2008-05-18 Thread bob pilly
Hi Manuel Thanks for the reply. I have tested it with a timeout of 20 seconds and the same thing occurs. It works as before from the command line and not form within apache.. Any more ideas? Cheers Bob - Original Message From: Manuel Lemos [EMAIL PROTECTED] To: bob pilly [EMAIL

Re: [PHP] Re: fsockopen on ssl://

2008-05-18 Thread Ólafur Waage
Are you doing the command line on the same machine as the server? Have you checked out the apache configuration? Since phpcli runs alone. (iirc) 2008/5/18 bob pilly [EMAIL PROTECTED]: Hi Manuel Thanks for the reply. I have tested it with a timeout of 20 seconds and the same thing occurs. It

[PHP] Job: Wanted, Dead or Alive: PHP/Drupal programmers in Chicago

2008-05-18 Thread Larry Garfield
(OK, alive would be preferable.) Obligatory businessy description: Palantir.net is looking for PHP programmers to join its growing team. Palantir is one of the oldest web development shops in Chicago, dating back to 1996. We develop customized web sites and web applications for a variety of

Re: [PHP] problem with htmlspecialchars in version5.2.5

2008-05-18 Thread Chris
It flance wrote: Hi, this statement: echo nl2br(htmlspecialchars($row['jobdescription'], ENT_QUOTES, 'UTF-8')); works for php4.3.10 but not for php5.2.5 What doesn't work exactly? What's the output in php4 compared to php5? -- Postgresql php tutorials http://www.designmagick.com/ --

[PHP] Semi-OT: PHP Login with client security

2008-05-18 Thread Tim Thorburn
Hi all, Having a slight problem with a demo I gave at a clients last week - looking for a little advise. Part of my demo involved a password protected area - the simplified process is: client enters password on login page if login/password match encrypted database, PHP session is created,