php-windows Digest 7 Apr 2005 20:36:14 -0000 Issue 2627

Topics (messages 25811 through 25814):

Problem with PHP functions under Win2K3
        25811 by: Juh�sz Zolt�n
        25812 by: Ken
        25813 by: M. Sokolewicz

Compiling Win32 extensions (VC++)
        25814 by: Jeff Beidler

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Hi!

I installed PHP 4 on Windows 2003 Enterprise to test it. Some functions
cannot work, example $REMOTE_ADDR, $HTTP_ACCEPT_LANGUAGE, etc. 
All functions get back an error:

Notice: Undefined variable: HTTP_ACCEPT_LANGUAGE in
C:\Inetpub\wwwroot\terrachat_hu\detectlang.php on line 16

I have not found information about this symptom. I don't know how can solve it. 
I think this functions posted by the browser. 
Why can not get this informations the PHP? 

I installed the PHP 5 and the problem has not solved yet.

Have you got any idea?

JZO

--- End Message ---
--- Begin Message ---
On Apr 7, 2005 12:11 PM, Juh�sz Zolt�n <[EMAIL PROTECTED]> wrote:
> 
> Hi!
> 
> I installed PHP 4 on Windows 2003 Enterprise to test it. Some functions
> cannot work, example $REMOTE_ADDR, $HTTP_ACCEPT_LANGUAGE, etc.
> All functions get back an error:
> 
> Notice: Undefined variable: HTTP_ACCEPT_LANGUAGE in
> C:\Inetpub\wwwroot\terrachat_hu\detectlang.php on line 16
> 
> I have not found information about this symptom. I don't know how can 
> solve it. I think this functions posted by the browser.
> Why can not get this informations the PHP?
> 
> I installed the PHP 5 and the problem has not solved yet.
> 
> Have you got any idea?
> 
> JZO
> 

you mean $_SERVER['REMOTE_ADDR']?
check the predefined variables bit in the manual

http://se2.php.net/reserved.variables

--- End Message ---
--- Begin Message --- Ken wrote:
On Apr 7, 2005 12:11 PM, Juh�sz Zolt�n <[EMAIL PROTECTED]> wrote:

Hi!

I installed PHP 4 on Windows 2003 Enterprise to test it. Some functions
cannot work, example $REMOTE_ADDR, $HTTP_ACCEPT_LANGUAGE, etc.
All functions get back an error:

Notice: Undefined variable: HTTP_ACCEPT_LANGUAGE in
C:\Inetpub\wwwroot\terrachat_hu\detectlang.php on line 16

I have not found information about this symptom. I don't know how can solve it. I think this functions posted by the browser.
Why can not get this informations the PHP?


I installed the PHP 5 and the problem has not solved yet.

Have you got any idea?

JZO



you mean $_SERVER['REMOTE_ADDR']?
check the predefined variables bit in the manual

http://se2.php.net/reserved.variables

in other words, your problem is register_globals being off while you expect it to be on.
--- End Message ---
--- Begin Message ---
Hello,

I am trying to compile Doru Petrescu's Upload Progress Meter extension on 
Win32.  (See http://pdoru.from.ro/upload-progress-meter.)  This is a great 
extension, it works very well... on linux, for which it was designed.

I am using MS Visual Studio (Visual C++ 6.0) as my build environment, set up as 
described in the tutorial at http://www.devnewz.com/2002/0909.html.  When 
trying to compile, I get the message:  "error C2065: 'tsrm_ls' : undeclared 
identifier."  This is somewhere in PHP's TSRM (Thread Safe Resource Manager) 
code.  As I understand it, all Windows PHP extensions must be "thread safe."  
If I remove the "ZTS=1" from the preprocessor directives, the module will 
compile nicely into a .dll file... but PHP won't load with it enabled.  I 
imagine this is because I removed the thread safe stuff in order to make it 
compile.  

Anyone have any ideas on how to get the darn thing to compile in such a manner 
that will make PHP accept it and load the module?

Help greatly appreciated,

Jeff

--- End Message ---

Reply via email to