Re: [PHP] php and DB2

2006-12-08 Thread tedd
At 9:38 PM +0100 12/8/06, [EMAIL PROTECTED] wrote: hi to all, my IT director got an idea to replace mysql with DB2. more "power/flexibility/stability/security..." though, for our needs, I think mysql is just fine and enough. the business we are doing is promotional products and all online orders

Re: [PHP] Load Extensions

2006-12-08 Thread Igor Kravchenko
Thank you. I removed php folder - everything except php.ini file and replaced with the new downloaded version and it started working. Thank you for your help. "Jim Lucas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Igor Kravchenko wrote: >> Thank you for your reply. >> >> I h

Re: [PHP] Load Extensions

2006-12-08 Thread Jim Lucas
Igor Kravchenko wrote: Thank you for your reply. I have only one php.ini. I checked it. Now, I found in the evenet log viewer that I have lots of messages like: "Module compiled with module API=20060613, debug=0, thread-safety=1 PHP compiled with module API=20020429, debug=0, thread-safety=1

RE: [PHP] php and DB2

2006-12-08 Thread Kristen G. Thorson
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, December 08, 2006 3:39 PM > To: php-general@lists.php.net > Subject: [PHP] php and DB2 > > hi to all, > my IT director got an idea to replace mysql with DB2. more > "power/flexibility/stability/securit

[PHP] php and DB2

2006-12-08 Thread afan
hi to all, my IT director got an idea to replace mysql with DB2. more "power/flexibility/stability/security..." though, for our needs, I think mysql is just fine and enough. the business we are doing is promotional products and all online orders we have are ONLY from our sales people. with 200-300

Re: [PHP] Load Extensions

2006-12-08 Thread Igor Kravchenko
Thank you for your reply. I have only one php.ini. I checked it. Now, I found in the evenet log viewer that I have lots of messages like: "Module compiled with module API=20060613, debug=0, thread-safety=1 PHP compiled with module API=20020429, debug=0, thread-safety=1 These options need to ma

Re: [PHP] Load Extensions

2006-12-08 Thread Jim Lucas
Igor Kravchenko wrote: Can someone help me with this, please? I cannot load extensions. I setup php5 in the c:\php folder. I specified extension_dir = "C:\php\ext". Everything else is setup correctly because php works. for me, I can load phpinfo file. It would not load extensions. I am

[PHP] Load Extensions

2006-12-08 Thread Igor Kravchenko
Can someone help me with this, please? I cannot load extensions. I setup php5 in the c:\php folder. I specified extension_dir = "C:\php\ext". Everything else is setup correctly because php works. for me, I can load phpinfo file. It would not load extensions. I am going nuts here. Please an

[PHP] signal handling

2006-12-08 Thread Mustafa Aras Koktas
Roman, Stut and Jochem, thanks for the comments and recommendations on the subject. I have installed my signal as pcntl_signal(SIGCHLD, SIG_IGN) without a specific function handler and it is closing child processes now. I could not use the pcntl_wait because it is available after PHP 5.0 i guess.

Re: [PHP] signal handling

2006-12-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-08 15:36:52 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2006-12-02 02:01:35 +0200: > >> [...] to write a simple socket server in PHP. My current example just > >> prints the same character, you send to server from keyboard. It is > >> successfull in forki

Re: [PHP] signal handling

2006-12-08 Thread Stut
Jochem Maas wrote: Roman Neuhauser wrote: The parent needs to wait(2) for its children. http://php.net/pcntl_wait have I understood correctly that using pcntl_wait() means you can't do anything in the parent process until all children are dead? this seems strange. probably I'm mi

Re: [PHP] How to be sure to use SSL

2006-12-08 Thread Stut
Alain Roger wrote: but i do not know if it's enough. Sorry it doesn't use PHP, but this is what I do if the client wants an entire site to always use SSL. In the web server config for the non-ssl site, put a permanent redirection to the SSL site. For Apache I use the following vhost...

Re: [PHP] How to be sure to use SSL

2006-12-08 Thread Jochem Maas
Alain Roger wrote: > Richard, > > as i wrote you before, i've gotthe following suggestion to implement before > to run the rest of my PHP code. > > if($_SERVER['HTTPS']!='on') > { > header('location:https://www.mysite.com'); > exit; > } > ... > > but i do not know if it's enough. it is enough -

Re: [PHP] signal handling

2006-12-08 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2006-12-02 02:01:35 +0200: >> Hello >> >> Despite all of my results to succeed, i can not make this work. What i want >> to do is to write a simple socket server in PHP. My current example just >> prints the same character, you send to server from keyb

Re: [PHP] signal handling

2006-12-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-02 02:01:35 +0200: > Hello > > Despite all of my results to succeed, i can not make this work. What i want > to do is to write a simple socket server in PHP. My current example just > prints the same character, you send to server from keyboard. It is > successfull in

Re: [PHP] signal handling

2006-12-08 Thread Jochem Maas
Aras wrote: > Hello > > Despite all of my results to succeed, i can not make this work. What i want > to do is to write a simple socket server in PHP. My current example just > prints the same character, you send to server from keyboard. It is > successfull in forking, and generates child as peopl

Re: [PHP] how to close a socket output, leave input

2006-12-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-08 09:38:44 +0800: > Hello All, > > 1. create a socket > 2. write something > 3. (just) close output > 4. read the server response > 5. close the socket > > step 3, i mean close output, let the server know the client send complete socke

RE: [PHP] how to close a socket output, leave input

2006-12-08 Thread Mustafa Aras Koktas
Is this for the client application or server? I assume it is a client as you are trying to read a server response. socket_write() will return the length of the buffer that is written to server, so you can check that value to make sure the send is complete. --Aras -Original Message- From:

Re: [PHP] Going crazy over mod_deflate

2006-12-08 Thread Jochem Maas
Cabbar Duzayak wrote: > Before I start, I am using apache 2.0.52 with PHP 4.3.9. > > In my .htaccess, I have a rewrite rule that rewrites /bb.flv as > /bb.php, and this bb.php file reads a flv file and outputs it. In the > PHP file, I am specifying content-type as video/x-flv and > content-length,

Re: [PHP] fopen failed to open pipe file in Linux+Apache environment

2006-12-08 Thread mike xu
Its so strange, when I runing /etc/rc.d/rc3.d/S85httpd restart, the php script couldn't fopen pipe file. But if I copy /etc/rc.d/rc3.d/S85httpd to some other place (for example /root), and execute `/root/S85httpd restart`, the php script could fopen file successfully! Its so confusing ... On 12/

Re: [PHP] fopen failed to open pipe file in Linux+Apache environment

2006-12-08 Thread mike xu
Hi Ryan, I just did another test, if I start the httpd by root user manually (the httpd daemon program still owns apache user by the result of `ps -aux`), the php script works fine. So, it seems the httpd start script (/etc/rc.d/init.d/httpd) did something specially which cause the permission pro

Re: [PHP] fopen failed to open pipe file in Linux+Apache environment

2006-12-08 Thread Ryan Creaser
mike xu wrote: Thanks a lot forr your reply. Here is the error msg: *Warning*: fopen(/dev/pmsg) [function.fopen]: failed to open stream: Permission denied in * /var/www/html/Source/test/register_user.php* on line *31 It still doesn't work even if I m