[PHP] AMF PHP

2005-12-12 Thread Yaswanth Narvaneni
Hi! Did any of you guys work with AMF PHP? I have been using AMF PHP for flash remoting and I am unable to propagate cookieless sessions from my web application to flash. Any suggestions? I am using Tufat.com's AMF Flash Chat as the flash app. Regards, Yaswanth -- In theory there is no

[PHP] PHP and Flash Remoting

2005-12-05 Thread Yaswanth Narvaneni
Hi! I am using amfchat from tufat.com, and wanted to integrate it with my site's session data. amfchat uses flash remoting to communicate to the server. It initally sends sessionid=time() to gateway.php gateway.php starts a session using: function session($name=false){ if($name){

[PHP] SQL Password() function

2005-11-26 Thread Yaswanth Narvaneni
Hi! Is there a function (or a code snippet) in PHP for mysql password() function? I 'dont' want to use something like select * from table where table.passwd=password($passwd); Is there any other alternate way to do it? Regards, Yaswanth -- In theory there is no difference between theory and

Re: [PHP] Is there a way to determine wich browser a visitor uses in php?

2005-11-23 Thread Yaswanth Narvaneni
Dirty Code if((ereg(Nav, getenv(HTTP_USER_AGENT))) || (ereg(Gold, getenv(HTTP_USER_AGENT))) || (ereg(X11, getenv(HTTP_USER_AGENT))) || (ereg(Mozilla, getenv( HTTP_USER_AGENT))) || (ereg(Netscape, getenv(HTTP_USER_AGENT))) AND (!ereg(MSIE, getenv(HTTP_USER_AGENT $c_browser = Netscape;

[PHP] Server Client Architecture, best parctice

2005-11-17 Thread Yaswanth Narvaneni
Hi! I would like to know what does the community think of the best architecture for server client communication and why? That is, if there is a server in C++ (say a game server) and the PHP has to 'read' data 'from' the server then what is the best form of communication? a) Shared Memory :

Re: [PHP] Shared Memory Problem

2005-11-16 Thread Yaswanth Narvaneni
: On Wed, Nov 16, 2005 at 03:33:22AM +0530, Yaswanth Narvaneni wrote: Hi! I have a server written in C++ and my webpages are in PHP. The PHP has to communicate with the server using shared memory. This was working fine on the server running FC-1 with php-4.3.8. We recently migrated to CentOS

Re: [PHP] Shared Memory Problem

2005-11-16 Thread Yaswanth Narvaneni
?? On 11/16/05, Curt Zirzow [EMAIL PROTECTED] wrote: On Wed, Nov 16, 2005 at 03:33:22AM +0530, Yaswanth Narvaneni wrote: Hi! I have a server written in C++ and my webpages are in PHP. The PHP has to communicate with the server using shared memory. This was working fine on the server

Re: [PHP] Shared Memory Problem

2005-11-16 Thread Yaswanth Narvaneni
Zend engine would solve the prob, but we need to buy zend which is very costly for me, any other solution is welcome. Regards, Yaswanth On 11/16/05, Curt Zirzow [EMAIL PROTECTED] wrote: On Wed, Nov 16, 2005 at 03:33:22AM +0530, Yaswanth Narvaneni wrote: Hi! I have a server written in C

[PHP] Shared Memory Problem

2005-11-15 Thread Yaswanth Narvaneni
Hi! I have a server written in C++ and my webpages are in PHP. The PHP has to communicate with the server using shared memory. This was working fine on the server running FC-1 with php-4.3.8. We recently migrated to CentOS 4.1 (Equivalent to RHEL 4.1) running php-4.3.9. The error it displays is