CGI / FastCGI crash

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Fri Sep 17, 2004 9:32 pm    Post subject: CGI / FastCGI crash Reply with quote

when I run the following code php (CGI / FastCGI) crashes:
Code:
//generate password
function makeRandomPassword() {
$salt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
srand((double)microtime()*10);
$i = 0;
//setno to required password length
while ($i <= 10) {
$num = rand() % 62;
$tmp = substr($salt, $num, 1);
$pass = $pass . $tmp;
$i++;
}
return $pass;
}
$random_password = makeRandomPassword();
echo "Your randomly generated password is <b>$random_password</b>";

can anyone see the problem that would cause php to bomb out and crash?

thanks
_________________
Olly
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sat Sep 18, 2004 12:34 am    Post subject: Reply with quote

what is the name of the PHP interpreter that you are using because FastCGI
is not yet supported on Abyss Web Server , telling me the name really helps.

01. Is it php-cgi.exe or php.exe ?
02. Do other scripts crash PHP ?
Back to top View user's profile Send private message Visit poster's website
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Sat Sep 18, 2004 10:41 am    Post subject: Reply with quote

TRUSTpunk wrote:
Is it php-cgi.exe or php.exe?

I'm using php 5.0.1 and php-cgi.exe
TRUSTpunk wrote:
Do other scripts crash PHP ?

this is the only script that i've found that causes php to crash

EDIT: I've just successfully run the same script on PHP4
_________________
Olly
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sat Sep 18, 2004 9:37 pm    Post subject: Reply with quote

Stay with PHP v4 because PHP v5 has alot of bugs in it , if I view the help
area of my GuestBook on PHP v5 , it shows up blank and on PHP 4 its fine.
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group