[PHP] Reg---PHP Installation error

2001-09-06 Thread senthilvellan

Hello Techies,

  I have installed php-4.05 and php4.06 under linux7.1(Red 
hat).Kernel( 2.4.2-2).

The installed lists are:

1.jdk1.2.2
2.jsdk2.0
3)mysql3.23.38

I got the following error while configuring php in both versions(4.05 and 4.06).The 
configure options is

 ./configure  --with-servlet=/usr/local/JSDK2.0/  --enable-ftp 
--with-java=/usr/local/jdk1.2.2  --with-mysql=/usr/local/ --enable-sockets 
--enable-sysvsem --enable-sysvshm --with-apache=/usr/local/apache_1.3.17


Error
mkdir: cannot create directory `/usr/local/lib/php/extensions/no-debug-zts-20001
222': Not a directory
make[1]: Leaving directory `/usr/local/php-4.0.6'
Making install in pear
make[1]: Entering directory `/usr/local/php-4.0.6/pear'
make[2]: Entering directory `/usr/local/php-4.0.6/pear'
mkdir: `/usr/local/lib/php' exists but is not a directory
+--+
| The installation process is incomplete. The following resources were |
| not installed:   
|  |
|  |
|   Self-contained Extension Support   |
|   PEAR: PHP Extension and Add-on Repository  |
|  |
| To install these components, become the superuser and execute:   |
|  |
|   # make install-su  |
+--+
make[2]: *** [install-data-local] Error 5
make[2]: Leaving directory `/usr/local/php-4.0.6/pear'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/php-4.0.6/pear'
make: *** [install-recursive] Error 1   

While running make install-su also we got the same error.
Here i noted that the error is ,it tries to create php directory where php file 
exists.So manually i change it to php1
after changing php to php1 i got the following error.



Error
make[1]: Leaving directory `/usr/local/php-4.0.6'
Making install in pear
make[1]: Entering directory `/usr/local/php-4.0.6/pear'
Makefile:9: /build/rules.mk: No such file or directory
make[1]: *** No rule to make target `/build/rules.mk'.  Stop.
make[1]: Leaving directory `/usr/local/php-4.0.6/pear'
make: *** [install-recursive] Error 1 

Whether iam missing anything.Any help is appreciate.


Thanks in advance,
Senthilvellan.



[PHP] Reg-Variables

2001-08-31 Thread senthilvellan

Hello Techies,
 
Is it possible to have our own global variables that can be shared 
between more than one programs in php.Is there any other go to share between 
programs(Other than flat files and database).Any help is appreciate.

Thanks in advance,
Senthilvellan.



[PHP] Reg-Session problem

2001-08-30 Thread senthilvellan

 
Helo techies ,

   Iam getting the following error .Any help is appreciated.


Fatal error: The script tried to execute a method or access a property of an 
incomplete object. Please ensure that the class definition user of the object you are 
trying to operate on was loaded _before_ the session was started in theme.inc on line 6
 
Thanks in advance,
Senthilvellan.




[PHP] Need info-reg Memory leakage tool

2001-08-29 Thread senthilvellan

Hello techies,
 In Java automatic garbage collection is there.How abt
PHP?. Is there any tool(open source/free ware)  to test the memory
leakage.If it so where i can get that tool?Any suggestions will be
appreciated.
Thanks in advance.
SenthilVellan.






Re: [PHP] Web page authentications

2001-08-27 Thread senthilvellan

Hello Admin,
 The following example will help you

HTTP Authentication example
?php
  if(!isset($PHP_AUTH_USER)) {
header(WWW-Authenticate: Basic realm=\My Realm\);
header(HTTP/1.0 401 Unauthorized);
echo Text to send if user hits Cancel button\n;
exit;
  } else {
echo pHello $PHP_AUTH_USER./p;
echo pYou entered $PHP_AUTH_PW as your password./p;
  }
?
 

HTTP Authentication example forcing a new name/password

?php
  function authenticate() {
header( WWW-Authenticate: Basic realm=\Test Authentication System\);
header( HTTP/1.0 401 Unauthorized);
echo You must enter a valid login ID and password to access this
resource\n;
exit;
  }

  if(!isset($PHP_AUTH_USER) || ($SeenBefore == 1  !strcmp($OldAuth,
$PHP_AUTH_USER)) ) {
   authenticate();
  }
  else {
   echo /pWelcome: $PHP_AUTH_USERbr;
   echo Old: $OldAuth;
   echo form action=\$PHP_SELF\ METHOD=POST\n;
   echo input type=\hidden\ name=\SeenBefore\ value=\1\\n;
   echo input type=\hidden\ name=\OldAuth\
value=\$PHP_AUTH_USER\\n;
   echo input type=\submit\ value=\Re Authenticate\\n;
   echo /form/p\n;
  }
?


  Thanks,

Senthilvellan



- Original Message -
From: admin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 14, 2001 11:52 PM
Subject: [PHP] Web page authentications


 I am new to PHP and am confused on HTTP authentications. I have read that
 section in the manual and still have questions. Where does PHP look to see
 if the user is valid or if the passward matches the user. How do you use
 PHP to set up user registration so users can input their information for
 authentication. Can anyone point me in the right direction to read more on
 this and help clear my confusion.
 Pat



 --
 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 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] Need Info -Memory leakage tool

2001-08-13 Thread senthilvellan

Hello techies,
 In Java automatic garbage collection is there.How abt
PHP?. Is there any tool(open source/free ware)  to test the memory
leakage.If it so where i can get that tool?Any suggestions will be
appreciated.
Thanks in advance.
SenthilVellan.


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.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]