[PHP] building apache 1.3.27 + php 4.3.0
when building apache 1.3.27 + php 4.3.0 i found out several errors, depending of what options i added with configure. these are my configure commands PHP: ./configure --with-apache=../apache_1.3.27 --with-mysql APACHE: ./configure --with-layout=Apache --prefix=/usr/local/install/apache/ --activate-modules/php4/libmodphp4.a compiling & installing php without errors, then i configure apache correctly, but when i try to "make" apache i find out: gcc -c -I../../os/unix -I../../include -DLINUX=22 -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci`mod_php4.c mod_php4.c:22: php_apache_http.h: No such file or directory make[4]: *** [mod_php4.o] Error 1 make[3]: *** [all] Error 1 make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/usr/local/src/apache_1.3.27/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/usr/local/src/apache_1.3.27' make: *** [build] Error 2 any int? is it a bug? thanks Stain -- "If there is any, error is human" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] building apache 1.3.27 + php 4.3.0
sorry, i discovered in php INSTALL file my error was related to --activate-module parameter. (and configure command i posted was wrong!) i apologize. bye Il 11:43, lunedì 20 gennaio 2003, Stain ha scritto: > when building apache 1.3.27 + php 4.3.0 i found out several errors, > depending of what options i added with configure. > > these are my configure commands > > PHP: > ./configure --with-apache=../apache_1.3.27 --with-mysql > > APACHE: > ./configure --with-layout=Apache --prefix=/usr/local/install/apache/ > --activate-modules/php4/libmodphp4.a > > compiling & installing php without errors, then i configure apache > correctly, but when i try to "make" apache i find out: > > gcc -c -I../../os/unix -I../../include -DLINUX=22 -DUSE_HSREGEX > -DNO_DL_NEEDED `../../apaci`mod_php4.c > mod_php4.c:22: php_apache_http.h: No such file or directory > make[4]: *** [mod_php4.o] Error 1 > make[3]: *** [all] Error 1 > make[2]: *** [subdirs] Error 1 > make[2]: Leaving directory `/usr/local/src/apache_1.3.27/src' > make[1]: *** [build-std] Error 2 > make[1]: Leaving directory `/usr/local/src/apache_1.3.27' > make: *** [build] Error 2 > > any int? is it a bug? > > thanks > > Stain -- "If there is any, error is human" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $header = "Location:........" being ignored!
try with exit() after header(). bye, stain. Il 10:48, martedì 21 gennaio 2003, Shams ha scritto: > Hi Group, > > I basically have some simple code such as: > > == > > if ( $_POST['passwd'] != $db['password'] > {header("Location: loginfailed.html"); > } > > //else > > $header = "Location: success.html"; > > == > > however, when I run this code, using a to submit password, username, > etc.. if the passwords do not match, the page is forwarded to > success.html ! > > Is there anything obvious that I am doing wrong? > > Thanks, > Shams > > p.s. I don't want to use else{} because I have lots of if() checks! -- "If there is any, error is human" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] session domain
i would use sessions in multiple hosts of my domain. say my domain is example.com, i'd use sessions in several hosts such as: www1.example.com www2.example.com www3.example.com this could be easily configured in php.ini by putting: session.cookie_domain = example.com but how can i do if i would EXCLUDE some hosts of my domain? someting like giving the exact list of hosts the cookie should be sent by user clients to the server: session.cookie_domain = www1.exclude.com,www2.example.com,www3.example.com (i tried, but it doesn't works!) such thing is useful when you have some hosts in which you're sure you manage them, while some others you're not so sure. for istance, someone on an hosted site of the same domain could catch all sessions clients sent to his site and re-use those sessions faking someone other authentication... some hints? tell me if it's not clear... bye, stain. -- "If there is any, error is human" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session domain
i thought this about cookies... but i would cookies to be sent by clients only on some hosts of the same domain, just this. bye, stain. Il 13:40, giovedì 23 gennaio 2003, Marek Kilimajer ha scritto: > It is cookie restriction, you can > - set several cookies, but it won't work if user has third party cookies > disabled (many have) > - pass session id in url if the url is cross domain > > Stain wrote: > >i would use sessions in multiple hosts of my domain. say my domain is > >example.com, i'd use sessions in several hosts such as: > >www1.example.com > >www2.example.com > >www3.example.com > > > >this could be easily configured in php.ini by putting: > >session.cookie_domain = example.com > > > >but how can i do if i would EXCLUDE some hosts of my domain? someting like > >giving the exact list of hosts the cookie should be sent by user clients > > to the server: > >session.cookie_domain = www1.exclude.com,www2.example.com,www3.example.com > >(i tried, but it doesn't works!) > > > >such thing is useful when you have some hosts in which you're sure you > > manage them, while some others you're not so sure. for istance, someone > > on an hosted site of the same domain could catch all sessions clients > > sent to his site and re-use those sessions faking someone other > > authentication... > > > >some hints? > > > >tell me if it's not clear... > > > >bye, stain. -- "If there is any, error is human" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] curl strange error
hi all i use latest apache (1.3.27) with php 4.3.0 + curl 7.10.3 i use php curl function to connect to a remote SSL-ed web server. the code is as follow: $ch = curl_init(); $url = 'https://www.example.com/cgi.ext'; curl_setopt ($ch, CURLOPT_URL, $url); echo ''; curl_exec ($ch); echo ''; if (curl_error($ch)) printf("Error %s: %s", curl_errno($ch), curl_error($ch)); curl_close ($ch); the output is: Error 35: SSL: error:14090086:lib(20):func(144):reason(134) error 35 is (from php manual): CURLE_SSL_CONNECT_ERROR, /* 35 - wrong when connecting with SSL */ but i don't know how to futher debug it. any hint? is that a bug? bye, stain. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] curl strange error
i answer myself, hth someone else. i use SSL just to use a crypted "session" to a target server. since target server certificate is not really "verified", i need to add these curl options: curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); in order to disable SSL certificate verification. otherwise, before choosing a partner for a specific service, i suggest you to find one that has a verificable certificate ;-) bye, stain. Il mer, 2003-02-12 alle 10:57, Stain ha scritto: > > hi all > > i use latest apache (1.3.27) with php 4.3.0 + curl 7.10.3 > > i use php curl function to connect to a remote SSL-ed web server. the > code is as follow: > > > > $ch = curl_init(); > > $url = 'https://www.example.com/cgi.ext'; > > curl_setopt ($ch, CURLOPT_URL, $url); > > echo ''; > curl_exec ($ch); > echo ''; > > if (curl_error($ch)) > printf("Error %s: %s", curl_errno($ch), curl_error($ch)); > > curl_close ($ch); > > > > the output is: > Error 35: SSL: error:14090086:lib(20):func(144):reason(134) > > error 35 is (from php manual): > CURLE_SSL_CONNECT_ERROR, /* 35 - wrong when connecting with SSL */ > > but i don't know how to futher debug it. > > any hint? is that a bug? > > bye, stain. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php