Re: [PHP] Managing upload files in multiple servers(pawns)

2006-01-01 Thread David Tulloh
Duncan Hill wrote:
 
 Use a shared file system such as NFS for upload storage.
 ...
 Shared storage is probably the better bet - perhaps with clever code that 
 tries a local disk first, then the shared storage if not found on local.  If 
 found shared and not local, pull to local.
 

I think a shared file system is the way to go, but think that Intermezzo
or Coda would be much better than NFS.  They have the caching built in,
including file change detection.  They also don't have nasty timeout
problems when the file server goes poof.

(I've never used either in a production system)


David

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



Re: [PHP] Re: HAPPY NEW YEAR!!

2006-01-01 Thread sunaram patir
happy new year from me too!
On 1/1/06, Julio B. [EMAIL PROTECTED] wrote:
 Feliz año nuevo.

 Saludos,

 Julio Barroso

 Jesús Alain Rodríguez Santos [EMAIL PROTECTED] escribió en el
 mensaje news:[EMAIL PROTECTED]
 Happy New Year for all.
 I weish you the best in this new 2006.
 Regards. Alain
 --
 Este mensaje ha sido analizado por MailScanner
 en busca de virus y otros contenidos peligrosos,
 y se considera que está limpio.

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



[PHP] manipulating constant name as string

2006-01-01 Thread Daniel Gross

Hello

I am trying to access the constant name as string and not the constant 
contents. For example,


define('myconst', 'const text 1');

$myArray = array()

myArray['myconst'] = this is it
etc.

$xmltext=;
foreach ($myArray as $key = $val) {
   echo $key = $val\n\n;
   $xmltext .= $xmltext = $xmltext . $key $val /$key;
}

Unfortunately, $key within the string concatenation is translated into 
the constant value. However, for the echo statement, then $key constant 
name is displayed. Is there a way to keep the constant name rather its 
value when manipulating it as a string?


thanks,

Daniel

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



Re: [PHP] manipulating constant name as string

2006-01-01 Thread Tom Rogers
Hi,

Monday, January 2, 2006, 4:37:17 AM, you wrote:
DG Hello

DG I am trying to access the constant name as string and not the constant
DG contents. For example,

DG define('myconst', 'const text 1');

DG $myArray = array()

DG myArray['myconst'] = this is it
DG etc.

DG $xmltext=;
DG foreach ($myArray as $key = $val) {
DG echo $key = $val\n\n;
DG $xmltext .= $xmltext = $xmltext . $key $val /$key;
DG }

DG Unfortunately, $key within the string concatenation is translated into
DG the constant value. However, for the echo statement, then $key constant
DG name is displayed. Is there a way to keep the constant name rather its
DG value when manipulating it as a string?

DG thanks,

DG Daniel

drop the single quotes to use the constant:

myArray[myconst] = this is it
-- 
regards,
Tom

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