[PHP] run extension library as different uid/gid?

2003-05-29 Thread Joe Wong
Hi, I have created an extension library for my own use. This library needs to access a storage area needs specific user ID to operate. If I start Apache as normal ( using User Apache, Group Apache in httpd.conf ), my PHP script fails to run. I try to setuid / setguid on the PHP script ( this script

Re: [PHP] two questions about usning session.

2003-03-12 Thread Joe Wong
nocache and after I change it to empty string, it solved my problem. For the second problem, I tried your script with two instances of IE 6.1 running, I didn't get two distinct values. Any idea? - Joe - Original Message - From: "Justin French" <[EMAIL PROTECTED]> T

[PHP] two questions about usning session.

2003-03-12 Thread Joe Wong
Hello, I have two questions about using sessions in PHP. Firstly, I use session to remeber the username and a session ID for the given user. When I hit the BACK button on the browser (IE), it always set that my page is expired and ask me to click the refresh button. How to prevent this from hap

[PHP] ZEND_SET_SYMBOL compilation error

2003-03-12 Thread Joe Wong
Hi, I am writing a PHP extension on Win32. I put a ZEND_SET_SYMBOL in the php_init_xxx_globals() and it failed to compile under Win32 using VC++ 5.0, the error I got: Y:\php-4.3.0\ext\wmcphp\wmcphp.c(138) : error C2065: 'tsrm_ls' : undeclared identifier Which corresponds to: ZEND_SET_SYMBOL(EG(a

[PHP] problem using extension.

2003-03-03 Thread Joe Wong
Hello, I have some problem using an extension written by myself. Here are the details: OS. RedHat 7.2 Apache: 1.3.20-16 (out of the box version ) PHP 4.3.0 compiled with: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] about writing extension

2003-02-10 Thread Joe Wong
Hello, I am going to write a PHP extension on top of some libraries that I have developed over the past few years. The libraries are bunch of .so file and some of them are C++. If I am going to compile my extension against 4.3 code base, will it be ok to run this with other 4.x PHP install base?