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

2005-12-31 Thread Alex Turner
Why not use php to copy the file over to the other box? You could do this either by ftp, nfs etc, or by making a the php script communicate with the upload script on the other box as though it was a client. Cheers AJ Srinadh Sannidhanam wrote: Thanks Duncan, thanks for the suggestions, I

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

2005-12-31 Thread Srinadh Sannidhanam
Thanks Duncan, thanks for the suggestions, I will try them and come back.. Please suggest me if you know any file synchronization tools over different servers other than rsync. I like if syncronization triggers immediately after uploading the file automatically rather than using cron. Thanks,

[PHP] COM dlls not unbinding at script end

2005-12-31 Thread Alex Turner
I am doing a lot of PHP work with COM. The system uses php 4.3.3.3 and php is being driven via FCGI from our own web server (TAG). We create an instance of an in-process COM server using the following technique: function GetFactory() { static $obj; static $objSet = 0; if($objSet==0)

[PHP] COM Dlls not unbinding

2005-12-31 Thread Alex Turner
Hi All, I am doing a lot of PHP work with COM. The system uses php 4.3.3.3 and php is being driven via FCGI from our own web server (TAG). We create an instance of an in-process COM server using the following technique: function GetFactory() { static $obj; static $objSet = 0; if($objSe

[PHP] Re: ternary operator in heredoc string

2005-12-31 Thread M. Sokolewicz
dev lamp wrote: Hi I am trying to use the ternary operator inside heredoc string to select the bgcolor based on the flag value, but it does not seem to work. $summary=<< $reqno STR; I looked up php documentation but could not find any details. What would be an optimal way to write the code

Re: [PHP] php / mysql / js search result question

2005-12-31 Thread Drew Butler
You're right when you say this has nothing to do with PHP. Well, mostly right. I don't believe he is looking for a select box solution. I believe what is being looked for is a Google Suggest style input box auto-complete solution. Now you were right to say this is heavily dependant on JavaScript or

Re: [PHP] unable to load perl extension

2005-12-31 Thread dev lamp
On 12/31/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Thu, December 29, 2005 9:17 am, dev lamp wrote: > > Scenario 2: > > the perl extension does not get loaded and the PHP script crashes. > > Define "crashes"... > > Does it literally crash the PHP/Apache process, or does it just print > out "

[PHP] ternary operator in heredoc string

2005-12-31 Thread dev lamp
Hi I am trying to use the ternary operator inside heredoc string to select the bgcolor based on the flag value, but it does not seem to work. $summary=<< $reqno STR; I looked up php documentation but could not find any details. What would be an optimal way to write the code for the above sit

[PHP] Re: Location ....

2005-12-31 Thread zerof
Christian Ista escreveu: Hello, Could you tell me a efficient solution for change page (new location) in PHP? I tried this code : header("Location: mypage.php"); - If you are at Apache environment, the best choice is to redirect 301 our 302 via .htaccess. redirect 301 -> for pages/files

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

2005-12-31 Thread Duncan Hill
On Saturday 31 December 2005 02:06, Srinadh Sannidhanam wrote: > Hi All, > > We have a site in php and two web servers(pawns) to balance the load. > There is a page in the site through which user can upload images. > > When a user uploads an image, the request goes to only one of the two > servers.