php-install Digest 10 Mar 2003 09:12:40 -0000 Issue 1283

Topics (messages 10314 through 10318):

Re: urgent business relationship
        10314 by: Matt Babineau

Really simple question - /php directory above /web tree .htaccess contents
        10315 by: news.php.net

Re: [PHP] Really simple question - /php directory above /web tree .htaccess contents
        10316 by: Ernest E Vogelsinger

sfio, php-4.3.1, solaris and me
        10317 by: Ralph Mengen

Re: Cannot connect PostgreSQL 7.3.1. Using PHP thru...
        10318 by: H. Etzel

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 ---
So can you post the code?

--> -----Original Message-----
--> From: DR RAYMOND IBRU [mailto:[EMAIL PROTECTED] 
--> Sent: Saturday, March 08, 2003 6:19 AM
--> To: [EMAIL PROTECTED]
--> Subject: [PHP-INST] urgent business relationship
--> 
--> 
--> The Palace of King of Ogoni Kingdom,
--> Ogoni Oil producing community,
--> Rivers State Nigeria.
--> 
--> 
--> Dear Sir,
--> 
--> I am Princess Grace , daughter of HRH King Solomon
--> Abonime, the king of Ogoni Kingdom. I am 25 years old
--> and a graduate of Mass Communication.
--> My father was the king of Ogoni Kingdom the highest
--> oil producing area in Nigeria. He was in charge of
--> reviving royalties from the multi-national oil
--> companies and government on behalf of the oil
--> producing
--> communities in Nigeria. After the hanging of the
--> Ogoni Nine(9) including Ken Saro Wiwa by the late
--> dictator General Sani Abacha, my father suffered
--> stroke and died in August27th this year. But before
--> his death, he called me and told me he has Twenty
--> Three Million Five
--> Hundred and Sixty Thousand Dollars
--> (USD23,560,000.00) cash in his possession, specially
--> deposited in a Security vault company here.
--> He advised me not to tell anybody except my mother who
--> is the last wife of the (8) eight wives that he
--> married. My mother did not bear any male child for
--> him. Which implies that all my father's properties,
--> companies e.t.c., we have no share in them because my
--> mother has no male child according to African
--> Tradition. My father therefore secretly gave me all
--> the relevant documents of the said money, and told me
--> that I should use this money with my mother and my
--> younger sisters because he knows that tradtionally, if
--> he dies we cannnot get anything, as inheritance.
--> He importantly advised me that I should seek foreign 
--> assistannce and that I should not invest this money here in 
--> Nigeria because of his other wives and male children who 
--> happen to be my elders. I am soliciting for your immediate 
--> assistance to get a Bungalow for us, where I will live with 
--> my mother and two younger sisters and further advise me 
--> where and how I will invest the balance money overseas, 
--> possibly on products of your company and other profitable 
--> ventures. I believe that by the special grace of God, you 
--> will help us move this money out of Nigeria to any country 
--> of your choice where we can invest this money judiciously 
--> with you. You are entitled to a reasonable part of this 
--> money based on our agreement, and God will bless you as you 
--> help us. PLease reply through my e-mail Looking forward to 
--> hear from you as soon as possible.
--> 
--> Regards.
--> 
--> Princess Grace Abonime .
--> 
--> 
--> 
--> 
--> -- 
--> PHP Install Mailing List (http://www.php.net/)
--> To unsubscribe, visit: http://www.php.net/unsub.php
--> 


--- End Message ---
--- Begin Message --- Greetings,

I am using php on a Sun Cobalt Linux
server with many virtual hosts.

I want to have the /php directory
one directory above the /web root
so it is not accessible from browser command line execution but
will execute from a click on an
html page.  CGI-PHP is installed
but I need to know the .htaccess
contents for the /cgi/php directory

If that is not possible.......

and I put the /php directory under
the /web root; would have to protect
it from browser command line execution
with a .htaccess file.

I would appreciate help with either of
the .htaccess contents that are required.

This question I think is very simple for
some of the more experienced php users
and I can't find the answer in any
documentation.

Thanks very much for any help.
Gerald Howse
###########

m2 mail ----- http://www.opera.com/m2/
--- End Message ---
--- Begin Message ---
At 17:58 08.03.2003, news.php.net said:
--------------------[snip]--------------------
>I want to have the /php directory
>one directory above the /web root
>so it is not accessible from browser command line execution but
>will execute from a click on an
>html page.  CGI-PHP is installed
>but I need to know the .htaccess
>contents for the /cgi/php directory

Of course this is possible. You just cannot directly run any PHP script by
URL if it's located outside the web root, but you could easily use stub
files running that part of the application you wish to use.

I assume you have some libraries that you'd like to include in your stub files:

-- stub.php
<?php
require_once('../php/library1.php');
?>

So there's no real need for an .htaccess-based blocker.

However here's what you need in .htaccess )line numbers only for
explanation below):

1 AuthName "The name of your realm"
2 AuthType Basic
3 AuthUserFile /etc/httpd/.htpasswd
4 AuthGroupFile /etc/httpd/.htgroup
5 Require group authorized_users
6 Order deny,allow
7 Deny from all
8 Allow from 10.10.10.0/24
9 Allow from ##.##.##.##
10 Satisfy any

Explanation:
1 - This is the text that will appear on the authentication dialog at the
clients side.
2 - There are others (like NTLM) but I don't have any experience using
them. Take care that "Basic" doesn't provide any encryption of transmitted
UserID/Passwords; it just Base64-encodes it.
3 - Where the password file is located. It may be anywhere, even outside
the web root, as long as it is readable by Apache. You create and maintain
the .htpasswd file using the htpasswd command line utility.
4 - Optional; contains user groups. Maintained by text editor. Format:
    group: user user user
    group: user user user
5 - Names of user groups that may access the ddirectory. You may as well use
    Require user user-id user-id
    if you don't support groups.
6 - Order of ACL check (http://httpd.apache.org/docs/mod/mod_access.html#order)
7 - Deny all hosts and users (checked first, see 6)
8 - Allow from the internal network (example, not required)
9 - Allow from any other IP or subnet (example, not required)
10 - http://httpd.apache.org/docs/mod/core.html#satisfy
    Allow access if _any_ of the above restrictions is met. If you specify
       Satisfy all
    the above example would never allow access since no host can be on 
    different addresses...

Note that "AllowOverride AuthConfig" must be set in the server or virtual
host definition if authentication is to be used via .htaccess.

The authentication directives can be used in the server config at the
<Directory> level, or in the .htaccess file.

Formore info on Apache directives read
http://httpd.apache.org/docs/mod/directives.html.

HTH,

-- 
   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035
    ^     http://www.vogelsinger.at/



--- End Message ---
--- Begin Message --- Hi,

I tried to use AT&T superb sfio library to solve the problem of Solaris
max. 256 file descriptors in their stdio.

When I try the follwoing:

env CFLAGS="-I/opt/sfio-2002/include"\
LIBS="-L/opt/sfio-2002/lib -lstdio -lsfio"\
./configure --with-config-file-path=/tmp/php/etc\
--prefix=/tmp/php --with-pear=/tmp/php/lib/pear\
--without-mysql --with-apache=../apache_1.3.27

it compiles fine, but when I try to install I receive the error:

Installing PHP CLI binary: /tmp/php/bin/
Installing PHP SAPI module
Installing shared extensions: /tmp/php/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /tmp/php/lib/pear/


Fatal error: Call to undefined function: fwrite() in /www/home/soft/software/apache/a/php-4.3.1/pear/PEAR/Registry.php on line 215

Fatal error: Call to undefined function: fread() in /www/home/soft/software/apache/a/php-4.3.1/pear/Archive/Tar.php on line 71
Installing build environment: /tmp/php/lib/php/build/


Anyone knows what's going on here? Is it a bug? While looking for this
error I found the old bug #5930 (http://bugs.php.net/bug.php?id=5930)
which seems to be a similar problem... Is it really be solved?

Should I post my question on the bug-list?

MANY thanx for any hints!
  ++ralph


_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus



--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----

I think  the problem is the username. you have a user "administrator"? At 
postresql the administratzor is the user postgres.

Perhaps you try first with 'reateuser' to create a new user, peraps with all 
rights, and then you can try to connect with  this username an password.

Hope this can help

H.Etzel



Patrick Lok wrote:

> tcpip_socket is enabled!
> access to postgresql is granted; ip-address is added to pg_hba.conf -
> METHOD = trust
> 
> ./pl
> 
> 
> 
> "Patrick Lok" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> I have the following setups:
>> *PostgreSql 7.3.1 and MSSQL on Win2k server (A)
>> *Apache 1.3.x + PHP 4.3.1.1(using CGI & loaded w/ php_pgsql.dll) +  ODBC
> for
>> PostgreSql v7.02.00.05 on Win2K server (B)
>>
>> I tried to use phppgadmin 2.4.2  and odbc for postgresql to connect
>> PostgreSql in (A) but both connection failed!
>>
>> Can somebody give me some advices?
>> Can PHP access remote DB server?
>> Can ODBC for PostgreSql access remote DB server?
>>
>> Best regards
>> ./pl
>>
>>
>>
>> Using  PHPPGADMIN 2.4.2 to administer but it says "Wrong
> username/password.
>> Access denied".
>>
>> The following is logged on psqlodbc_xxxx.log:
>> DSN info:
>>
> 
DSN='PostgreSQL',server='192.168.1.16',port='5432',dbase='tet',user='adminis
>> trator',passwd=''
>>
>> onlyread='0',protocol='6.4',showoid='0',fakeoidindex='0',showsystable='0'
>>           conn_settings='',conn_encoding='OTHER'
>>           translation_dll='',translation_option=''
>>
>>
>> I wrote a simple php program in (B) to connect to server (A) using odbc
> for
>> postgresql but the connection failed!
>>
>> <?php
>> $rtn = odbc_connect("PostgreSql","administrator","");
>> $cur=odbc_exec($rtn,"select d_base, high_jrnal from salfmsc");
>> while(odbc_fetch_row($cur)){
>> $fld1=odbc_result($cur,1);
>> $fld2=odbc_result($cur,2);
>> echo $fld1;
>> echo ("-");
>> echo $fld2;
>> echo ("<p>");
>> }
>> echo odbc_close($rtn);
>> ?>
>>
>> BUT Warning is returned.
>> Warning: SQL error: Could not connect to the server; Could not connect to
>> remote socket., SQL state 08001 in SQLConnect in
>> d:\tmp\webcodetest\mstest.php on line 3
>>
>> The following is logged on psqlodbc_xxxx.log:
>> DSN info:
>>
> 
DSN='PostgreSql',server='192.168.1.16',port='5432',dbase='tet',user='adminis
>> trator',passwd=''
>>
>> onlyread='0',protocol='6.4',showoid='0',fakeoidindex='0',showsystable='0'
>>           conn_settings='',conn_encoding='OTHER'
>>           translation_dll='',translation_option=''
>> conn = 15742608, PGAPI_Connect(DSN='PostgreSql', UID='teter', PWD='')
>> Global Options: Version='07.02.0005', fetch=100, socket=4096,
>> unknown_sizes=0, max_varchar_size=254, max_longvarchar_size=8190
>>                 disable_optimizer=1, ksqo=1, unique_index=1,
>> use_declarefetch=0
>>                 text_as_longvarchar=1, unknowns_as_longvarchar=0,
>> bools_as_char=1 NAMEDATALEN=64
>>                 extra_systable_prefixes='dd_;', conn_settings=''
>> conn_encoding='OTHER'
>> CONN ERROR: func=PGAPI_Connect, desc='Error on CC_connect', errnum=101,
>> errmsg='Could not connect to the server'
>>             ------------------------------------------------------------
>>             henv=15742552, conn=15742608, status=0, num_stmts=16
>>             sock=15753592, stmts=15761872, lobj_type=-999
>>             ---------------- Socket Info -------------------------------
>>             socket=-1, reverse=0, errornumber=4, errormsg='Could not
> connect
>> to remote socket.'
>>             buffer_in=15753664, buffer_out=15757768
>>             buffer_filled_in=0, buffer_filled_out=0, buffer_read_in=0
>>
>>

- -- 


- -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.3in

mQENAz5p1tsAAAEIAOO1/GiPZI6Tp8n2Cu34Jm+ofXw6gWpXnHcu73WHEIhaUAgV
S+jnpsIWDmBCASIBxFymDKehIcGMrShS2RR0x3lrYBIKtv6/8nzMGLXWSu689FA8
52v5WYge8WCBS0KGEx7CC5jNplPgFOTWL/K7jy+KCIjUrZ5tuKLlrIpah5UIhz/K
ciD6wa9kAvzMIp/nTT+WXLk+F8Le5sShw0maSXVaizQd2xKHe/ZVgGJ7swKqsgEG
Nka2YaBDzYvorr0viu/vYV0ZSAyCsJ7F/0G1r0JO4lQRz8lWoR3HvJ8Smye5SFdH
7JRTzg6zodMTBRfeH6+vSb/bobvDmYZ/Z9KsEmMABRG0HkguIEV0emVsIDxoZXR6
ZWwuZGV2ZWxAd2ViLmRlPokBFQMFED5p1xGZhn9n0qwSYwEBtckH/jBYOFUTRCoz
ht4ZVddpA0Tud0RKZdE/is1gRQpP2y/ksKTxtFteJpoQMWAPVIK2WQ+VaZTF61XN
5hBrkSCow9vVNMsu7uqXXiuH2Ks1LVb5Zv1dLORJB/CuliDaYgoFTf5JvzaHBgqV
r/Qq+qtGoagWaNCL79/sNofDEe8aIRkrSn1L8wD90PnULZ3X9ot/RBsBK+VGk+zT
Akd5rzrucw1FNYzfWXOK6QGTdzMqjQCJqRHW9oxKOzzxFNMnsVHOH3xWuo29ch1z
hOPhXE2unxNXyZrcskfSV0qhd4unOwOyzZkNpf/cYs5OQB9G3G8Czuai0fCdEuwt
pzj4uAhKvNo=
=5Z9r
- -----END PGP PUBLIC KEY BLOCK-----

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3in
Charset: noconv

iQEVAwUBPms6F5mGf2fSrBJjAQE5iwf+O2eCOJUxXHV2ZIleeSG5BDNVq7YJWWcP
pVQJDFK3Cj87Kfe4H3S7PMXHWtexxnQElHmsJLma/w3ouWcjHNTZ2Wjwz6kMeWZT
M4Nw/BqPLZuXZhHTMR07IlHj7PGosQmKnQnxCf5h6nTZX0c6H2rLxmqgOKMNG6KB
SFWR+k5qwLau1OyaPW42aKtK0Eiel92Me0C+JrifahIKH7Wg3NUur5UKAdMHvBKh
louRzBkpWWySqwtHACvGgxhWH2E1YgchztQtoSh8IYZW7KTl0Y0r1m1WaesYpQT5
p20zO5eainNw2RyW8THmZOsRWdZ9/XcBPUoExw1R5f+b15OkD3HEvw==
=xDrV
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to