Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-10 Thread Richard Lynch
On Sun, June 10, 2007 12:48 am, Robert Cummings wrote:
 On Sun, 2007-06-10 at 13:36 +0800, Crayon Shin Chan wrote:
 On Sunday 10 June 2007 04:05, Robert Cummings wrote:

  Funny how the solution often presents itself after you make your
  problem public *lol* :) Wonder if it falls under Murphy's Law.

 There should be a dummy list that people post to, if they don't work
 out
 the answer themselves 10 minutes after posting to the dummy list
 they can
 then post to the real list.

 *lol* The first time I read the above I thought you were suggesting a
 list to which idiots could post :)

No, I think we have that already...
:-) :-) :-)

Hey, *I* am here, right?

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



[PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Frank Arensmeier

Hi.

I have been struggling with a little problem for quite some time now,  
without finding a good solution.


On one of my pages, users are able to download files that contain  
none US ASCII characters in their filenames (e.g. character ö,ä,å).  
And I would like to set the original filename in the content header.  
But according to RFC2183 on ... The Content-Dispostion Header  
Field, characters that are not part of US ASCII are not allowed in  
content headers. Is there any chance to get around this limitation?  
On the other hand, uploading files that contain special characters  
in their filenames is no problem. Why is that so? My solution so  
far is that I simply replace those characters (ä with a, ö with o and  
so on).


Any ideas?

//frank

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



Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Frank Arensmeier
Sorry, my misstake. It turned out that the filename (stored in MySQL)  
was UTF8 encoded. Setting the content header filename value  
manually to something including umlaut characters was no problem.


Lazy me...

Nice weekend.

//frank

9 jun 2007 kl. 21.51 skrev Frank Arensmeier:


Hi.

I have been struggling with a little problem for quite some time  
now, without finding a good solution.


On one of my pages, users are able to download files that contain  
none US ASCII characters in their filenames (e.g. character ö,ä,å).  
And I would like to set the original filename in the content  
header. But according to RFC2183 on ... The Content-Dispostion  
Header Field, characters that are not part of US ASCII are not  
allowed in content headers. Is there any chance to get around this  
limitation? On the other hand, uploading files that contain  
special characters in their filenames is no problem. Why is that  
so? My solution so far is that I simply replace those characters  
(ä with a, ö with o and so on).


Any ideas?

//frank

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



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



Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Robert Cummings
On Sat, 2007-06-09 at 21:59 +0200, Frank Arensmeier wrote:
 Sorry, my misstake. It turned out that the filename (stored in MySQL)  
 was UTF8 encoded. Setting the content header filename value  
 manually to something including umlaut characters was no problem.

Funny how the solution often presents itself after you make your problem
public *lol* :) Wonder if it falls under Murphy's Law.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Frank Arensmeier

9 jun 2007 kl. 22.05 skrev Robert Cummings:


On Sat, 2007-06-09 at 21:59 +0200, Frank Arensmeier wrote:

Sorry, my misstake. It turned out that the filename (stored in MySQL)
was UTF8 encoded. Setting the content header filename value
manually to something including umlaut characters was no problem.


Funny how the solution often presents itself after you make your  
problem

public *lol* :) Wonder if it falls under Murphy's Law.


... I think you made a good point there ...

//frank



Cheers,
Rob.
--
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'


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



Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Robert Cummings
On Sat, 2007-06-09 at 22:20 +0200, Frank Arensmeier wrote:
 9 jun 2007 kl. 22.05 skrev Robert Cummings:
 
  On Sat, 2007-06-09 at 21:59 +0200, Frank Arensmeier wrote:
  Sorry, my misstake. It turned out that the filename (stored in MySQL)
  was UTF8 encoded. Setting the content header filename value
  manually to something including umlaut characters was no problem.
 
  Funny how the solution often presents itself after you make your  
  problem
  public *lol* :) Wonder if it falls under Murphy's Law.
 
 ... I think you made a good point there ...

Happens to me all the time.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Tijnema

On 6/9/07, Robert Cummings [EMAIL PROTECTED] wrote:

On Sat, 2007-06-09 at 22:20 +0200, Frank Arensmeier wrote:
 9 jun 2007 kl. 22.05 skrev Robert Cummings:

  On Sat, 2007-06-09 at 21:59 +0200, Frank Arensmeier wrote:
  Sorry, my misstake. It turned out that the filename (stored in MySQL)
  was UTF8 encoded. Setting the content header filename value
  manually to something including umlaut characters was no problem.
 
  Funny how the solution often presents itself after you make your
  problem
  public *lol* :) Wonder if it falls under Murphy's Law.

 ... I think you made a good point there ...

Happens to me all the time.

Cheers,
Rob.
--


Yup, happens to me too..

Tijnema

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



Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Richard Lynch
On Sat, June 9, 2007 2:51 pm, Frank Arensmeier wrote:
 I have been struggling with a little problem for quite some time now,
 without finding a good solution.

 On one of my pages, users are able to download files that contain
 none US ASCII characters in their filenames (e.g. character ö,ä,å).
 And I would like to set the original filename in the content header.
 But according to RFC2183 on ... The Content-Dispostion Header
 Field, characters that are not part of US ASCII are not allowed in
 content headers. Is there any chance to get around this limitation?
 On the other hand, uploading files that contain special characters
 in their filenames is no problem. Why is that so? My solution so
 far is that I simply replace those characters (ä with a, ö with o and
 so on).

If those characters are valid in URLs, or can be URL-encoded to be
valid, then this rant may let you achieve your goal, bypassing the
Content-disposition issue(s):
http://richardlynch.blogspot.com

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Richard Lynch
On Sat, June 9, 2007 3:05 pm, Robert Cummings wrote:
 On Sat, 2007-06-09 at 21:59 +0200, Frank Arensmeier wrote:
 Sorry, my misstake. It turned out that the filename (stored in
 MySQL)
 was UTF8 encoded. Setting the content header filename value
 manually to something including umlaut characters was no problem.

 Funny how the solution often presents itself after you make your
 problem
 public *lol* :) Wonder if it falls under Murphy's Law.

31st Corollary.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Crayon Shin Chan
On Sunday 10 June 2007 04:05, Robert Cummings wrote:

 Funny how the solution often presents itself after you make your
 problem public *lol* :) Wonder if it falls under Murphy's Law.

There should be a dummy list that people post to, if they don't work out 
the answer themselves 10 minutes after posting to the dummy list they can 
then post to the real list.

-- 
Crayon

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



Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Robert Cummings
On Sun, 2007-06-10 at 13:36 +0800, Crayon Shin Chan wrote:
 On Sunday 10 June 2007 04:05, Robert Cummings wrote:
 
  Funny how the solution often presents itself after you make your
  problem public *lol* :) Wonder if it falls under Murphy's Law.
 
 There should be a dummy list that people post to, if they don't work out 
 the answer themselves 10 minutes after posting to the dummy list they can 
 then post to the real list.

*lol* The first time I read the above I thought you were suggesting a
list to which idiots could post :)

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



[PHP] none

2001-12-20 Thread Arsen Kirillov

Ok i am in test


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] NONE

2001-09-23 Thread Tero Tielinen

Hello!

Firs of all, sorry about my bad english.

I have a broblem, which i've tried to solve about two days now.

I have an  two-dimenssional array like this:

$array[0][id] = 2;
$array[1][id] = 3;
$array[2][id] = 4;
$array[3][id] = 5;
$array[4][id] = 6;
$array[5][id] = 7;
$array[6][id] = 8;
$array[7][id] = 9;
$array[8][id] = 10;

$array[0][kat_id] = 1;
$array[1][kat_id] = 1;
$array[2][kat_id] = 1;

$array[3][kat_id] = 3;
$array[4][kat_id] = 3;
$array[5][kat_id] = 3;

$array[6][kat_id] = 4;
$array[7][kat_id] = 4;
$array[8][kat_id] = 1;

I want to sort the array by using the id and kat_id values. I've 
tried loop like this (among many others):

for($i = 0; $i  sizeof($array); $i++)
{
   $father = $array[$i][id];
   for($j = $i; $j  sizeof($array); $j++)
   {
 if($father == $array[$j][kat_id])
 {
return_array[] = $father;
return_array[]   = $array[$j][$id];
 }
 else
 {
return_array[] = $father;
 }
   }

}

The loop dont't work. And i now the broblem in theorrtical level. The loop should test 
does the latter value in if-part ($array[$j][$id]) have any child values, but i just 
can't 
get it to work. I want the result array, in this  case, to look like this:

$array[0][kat_id] = 1;
$array[1][kat_id] = 1;
$array[3][kat_id] = 3;
$array[4][kat_id] = 3;
$array[6][kat_id] = 4;
$array[7][kat_id] = 4;
$array[5][kat_id] = 3;
$array[8][kat_id] = 1;


Can anybody help me?

Thanks,

Tero




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] NONE

2001-06-20 Thread Ali Amirnezhad

Hi every body,
I look for some plase to find good programs for APACHE web server on Windows, such as 
PHP for windows, Proxy Server, ASP Support with Apache, 
etc., Is there any one to help me?
With best regaurds
Ali Amirnezhad




Re: [PHP] NONE

2001-06-20 Thread Pavel Kalian

www.google.com

Pavel
- Original Message -
From: Ali Amirnezhad [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 5:47 AM
Subject: [PHP] NONE


 Hi every body,
 I look for some plase to find good programs for APACHE web server on
Windows, such as PHP for windows, Proxy Server, ASP Support with Apache,
 etc., Is there any one to help me?
 With best regaurds
 Ali Amirnezhad