[PHP] mod_php4 / apache config question

2002-09-03 Thread Lee Doolan



If there is some way to do this, then it has eluded me for several
hours.  I would like to set a variable in the apache config file which
I can then access in a php script.  I'm running mod_php4 and apache 1

I have tried things like this:
php_value WSERVER red2.office.com

and this:
SetEnv WSERVER red2.office.com

with and without quotes.  mod_env is loaded.  I can't find the
variable WSERVER n $GLOBALS or $_ENV of $_GET.

can someone help out?

-- 
Flowers of morning glory.  +-+
The sky above this street  |donate to causes I care about:   |
Begins to overcast.|  http://svcs.affero.net/rm.php?r=leed_25|
   --Sugita+-+

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] mod_php4.c errors on Apache Complie

2002-07-28 Thread Peter

Howdy,

I've successfully complied PHP and the straight cigfiguration of apache
1.3.26 but when i go to configure php as a module in apache using

#./configure --enable-module=max --enable-shared=max --activate-module=src/m
odules/php4/libmodphp4.a

i get the following error

mod_php4.c:28:18: zend.h: No such file or directory
mod_php4.c:29:17: php.h: No such file or directory
mod_php4.c:30:27: php_variables.h: No such file or directory
mod_php4.c:47:21: php_ini.h: No such file or directory
mod_php4.c:48:25: php_globals.h: No such file or directory
mod_php4.c:49:18: SAPI.h: No such file or directory
mod_php4.c:50:22: php_main.h: No such file or directory
mod_php4.c:52:26: zend_compile.h: No such file or directory
mod_php4.c:53:26: zend_execute.h: No such file or directory
mod_php4.c:54:28: zend_highlight.h: No such file or directory
mod_php4.c:55:25: zend_indent.h: No such file or directory
mod_php4.c:57:39: ext/standard/php_standard.h: No such file or directory
In file included from mod_php4.c:61:
mod_php4.h:34: parse error before "zend_bool"
mod_php4.h:34: warning: no semicolon at end of struct or union
mod_php4.h:35: warning: data definition has no type or storage class
mod_php4.h:37: parse error before "apache_module_entry"
mod_php4.h:37: warning: data definition has no type or storage class
mod_php4.h:43: parse error before "php_apache_info"
mod_php4.h:43: warning: data definition has no type or storage class
mod_php4.c:67: parse error before "TSRMLS_DC"
mod_php4.c:70: parse error before "TSRMLS_DC"
mod_php4.c:71: warning: parameter names (without types) in function
declaration
mod_php4.c:72: parse error before '*' token
mod_php4.c:73: parse error before '*' token
mod_php4.c:90: parse error before "HashTable"
mod_php4.c:91: parse error before "HashTable"
mod_php4.c:92: parse error before "HashTable"
mod_php4.c:93: parse error before "HashTable"
mod_php4.c:94: parse error before "HashTable"
mod_php4.c:95: parse error before "HashTable"
mod_php4.c:127: parse error before "TSRMLS_DC"
.
.
.
.

does any one have any idea's on why it is and what i can do about it?

Cheers

Peter
"the only dumb question is the one that wasn't asked"



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] mod_php4

2002-04-08 Thread The Doctor

Here is what I get when I try to make a DSO
with apache 2.0.35 and php 4.1.2:


Script started on Sun Apr  7 13:39:30 2002
doctor.nl2k.ab.ca//usr/source/php-4.1.2$ make 
Making all in Zend
Making all in main
Making all in ext
Making all in zlib
Making all in ftp
Making all in gd
Making all in mysql
Making all in openssl
Making all in pcre
Making all in pcrelib
Making all in posix
Making all in session
Making all in standard
Making all in xml
Making all in expat
Making all in sapi
Making all in apache2filter
/bin/sh /usr2/source/php-4.1.2/libtool --silent --mode=compile gcc  -I. 
-I/usr2/source/php-4.1.2/sapi/apache2filter -I/usr2/source/php-4.1.2/main 
-I/usr2/source/php-4.1.2 -I/var/www/include/ -I/usr2/source/php-4.1.2/Zend 
-I/usr/contrib/include -I/usr2/source/gd-1.8.3 -I/usr/contrib/include/mysql 
-I/usr2/source/php-4.1.2/ext/xml/expat  -I/usr2/source/php-4.1.2/TSRM -g -O2 -DZTS 
-prefer-pic  -c sapi_apache2.c
sapi_apache2.c: In function `php_apache_sapi_ub_write':
sapi_apache2.c:58: too few arguments to function `apr_brigade_create'
sapi_apache2.c:61: too few arguments to function `apr_bucket_transient_create'
sapi_apache2.c: In function `php_apache_sapi_register_variables':
sapi_apache2.c:148: warning: initialization discards qualifiers from pointer target 
type
sapi_apache2.c: In function `php_apache_sapi_flush':
sapi_apache2.c:171: too few arguments to function `apr_brigade_create'
sapi_apache2.c:172: too few arguments to function `apr_bucket_flush_create'
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:245: too few arguments to function `apr_brigade_create'
sapi_apache2.c:247: incompatible type for argument 4 of `ap_get_brigade'
sapi_apache2.c:247: too few arguments to function `ap_get_brigade'
sapi_apache2.c: In function `php_output_filter':
sapi_apache2.c:311: too few arguments to function `apr_brigade_create'
sapi_apache2.c:366: too few arguments to function `apr_bucket_transient_create'
sapi_apache2.c:375: too few arguments to function `apr_bucket_eos_create'
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:407: `AP_FTYPE_CONTENT' undeclared (first use in this function)
sapi_apache2.c:407: (Each undeclared identifier is reported only once
sapi_apache2.c:407: for each function it appears in.)
sapi_apache2.c:408: warning: passing arg 2 of `ap_register_input_filter' from 
incompatible pointer type
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
doctor.nl2k.ab.ca//usr/source/php-4.1.2$ exit
exit

Script done on Sun Apr  7 13:39:58 2002
-- 
Member - Liberal International  On 11 Sept 2001 the WORLD was violated.
This is [EMAIL PROTECTED]   Ici [EMAIL PROTECTED]
Society MUST be saved! Extremists must dissolve.  
Beware of defining as intelligent only those who share your opinions

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] mod_php4

2002-04-07 Thread javier

Will be any changes to mod_php4 since the release of apache 2.0.35?
I wanted to compile it (freebsd ports) with a apache 2.0.33 and I
had problems while compiling.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] mod_php4

2001-02-27 Thread Richard Lynch

> Does anyone know the difference between the cgi version of php4 (php.exe)
as
> opposed to setting up php4 as a server's module?
>
> I have both versions installed its just that I do not know what is the
> difference when it comes to functionality. Does the cgi version execute
> faster then the other...things like this!

CGI much slower, somewhat more stable since it's been around longer.

There will be some features not available in CGI, but if you're using NT
they probably wouldn't have worked anyway.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mod_php4

2001-02-26 Thread styles

Greetings -

FYI: I have WinNT + Apache + PHP

Does anyone know the difference between the cgi version of php4 (php.exe) as
opposed to setting up php4 as a server's module?

I have both versions installed its just that I do not know what is the
difference when it comes to functionality. Does the cgi version execute
faster then the other...things like this!

A Web site would be great an explanation would be ideal.

Thanx in advance



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mod_php4 + mod_python + apache 1.3.14: no workie!

2001-01-26 Thread Aaron Faby

Hello,

I have successfully compiled mod_php4 and mod_python as DSO's for apache 
1.3.14, and both will
work independently with apache, but if I try to load both of them at I 
get the following apache
error:

dyld: /usr/sbin/apache multiple definitions of symbol _pcre_free
/System/Library/Apache/Modules/mod_python.so definition of _pcre_free
/System/Library/Apache/Modules/libphp4.so definition of _pcre_free

Has anyone gotten these modules to work concurrently? TIA!

--
Aaron Faby   Software 
Developer
Tenon Intersystems 
 
[EMAIL PROTECTED]
1123 Chapala Street
805-963-6983
Santa Barbara, CA 93103 
http://www.tenon.com
--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]