[PHP] install error?..bug??

2002-10-18 Thread Howard
Good morning,

I'm reasonably new to the world of PHP and have loaded PHP V4.2.3 onto a Sun
Solaris system running Solaris 8 with Iplanet (formerly Netscape) Version
6.0 with Service Pack 4 installed.

I'm not sure exactly what error I am seeing, but I do know that there are
some rather obscure errors being encountered while I am installing a PHP
based package into our WebServer.  I've no idea what is causing the
problem - I can *SEE* the problem, but I have no clue what to do or where to
turn to fix/address the issue.

here is the scoop:

inside of an install.php script that is executed via the webserver, is a
section of code that looks like this:

$path=./this.that;

if(file_exists($path)==0 {
$styetext=;
} else {
$filesize=filesize($path);
$filenum=fopen($path,r);
$styletext=fread($filenum,$filesize);
fclose($filenum);
}
if ($styletext==) {
echo p ensure that the this.that exists in teh current directory, and
then reload this current page. /p;
exit;
}

that's the code that is showing me that there is a problem.  No matter how I
set file protections or ownership, that file appears to never exist.  If,
however, I comment out this section of the code, the installation will run
on to completion.  That tells me that some of the calls like if
(file_exists) aren't giving back valid results - or , they simply
aren't being executed as the install script expect (or it's a bug).

Once I do force my way through the installation, I then find that other PHP
files deliver errors.  Scripts that work on other machines at other
installations in other sites, simply don't work here, but they should.

This seems to be something that perhaps is unique to Solaris???

Any hints/suggestions...logging tricks or ways to visually *see* what is
goign on in the system to tell me what is happening?

Thanks in advance for any/all help.

as in HELP!!!  :)

Howard
if you have valid help/hints...you can mail them directly to me at:
[EMAIL PROTECTED]




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




RE: [PHP] Re: Need help with HTTP-Authentication

2002-10-18 Thread Davy Obdam
Hi David,.

 Http authentication is probly  not what you would want to 
 use.  Especially if you want to program in timeouts, you 
 would be better off using session based login variables.  
 Cookies are even better with an encrypted pasword that has a 
 windows of time that you have to goto other pages to renew.
 
 Why HTTP auth?
 
 Is it mandatory?

Well its not mandatory i gues. I just thought that using
HTTP-Authentication was one of the more secure ways of a login system?
But i have heared not thats not the case, so i might go for a login
system with sessions instead, or cookies. What would u use and why? What
excactly do u mean with timeouts?
 
 I know this hasnt been any help, sorry!

Thats okay;-) Keeps the discusion alive;-)

Best regards,
 
Davy Obdam,
mailto:info;davyobdam.com



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