Posts Tagged ‘Function’
Cookies in Mac? PHP Login script hanging…?
So I wrote a function in a class that logs the user in:
public function UserLogIn($username,$password){
if (!isset($username) || !isset($password)) {
header(“Location: ../dev/index.php”);
}
else if(empty($username)) {
header(“Location: ../dev/index.php”);
}
else if(empty($password)) {
header(“Location: ../dev/index.php”);
}
else {
$user = addslashes($username);
$pass = $this->MD5SuperEncrypt($password);
$result = $this->dbQuery(“SELECT * FROM user WHERE username = ‘$user’ AND password = ‘$pass’”);
$rowCheck = mysql_num_rows($result) or die(mysql_error());
if($rowCheck > 0){
while($row = mysql_fetch_array($result)){
$ID = $row['id'];
@session_start();
if($_SESSION['id'] = $row['id']){
@header(“Location: ../dev/index.php”);
}
}
}
else @header(“Location: ../dev/index.php”);
}
}
I’ve tested it on Linux (Ubuntu and Debian) and it works perfectly on Firefox 3 and Opera 9.5 on those two distributions. On Mac however, it hangs on both Firefox 3 and Safari. I have also tested it on Windows using Internet Explorer 7 and Firefox 3. Anyone have any idea as to why it hangs on Mac?
Getting an error ” ‘_buffer’ undeclared (first use in this function) “?
I am compiling this program on Fedora core… And this is just a thread application. I have also included library -lpthread into my make file.
Still I am getting this error… I do not have any idea what so eve from where this error is coming….
PHP mail function Under BSD Unix?
Hi;
I have a FreeBSD unix server; and i have tried to create an online application. so i have used the MAIL function of php.
my form wroks successfuly on my computer (using localhost by defining the SMTP) but when uploading it to the server, it takes a long time and at last it does not send the mail without giving any error or warning message (i specify the sendmail_path option as follow:
ini_set (‘sendmail_path’, ‘usr/sbin/sendmail -t -i -f alaa_alomari@yahoo.com’); )
so would you please tell me what is the problem and how can i solve it.
Thank you
please help me ,Resource Conflict – PCI Mass Storage Controller in Slot 04 Bus:03, Device:04, Function:00?
I have proliant Ml 150 g2 server it was installed windows 2003 and fedora , it was working fine for 2 months but suddenly today it gave me error in post Resource Conflict – PCI Mass Storage Controller in Slot 04 Bus:03, Device:04, Function:00
please help me out from this issue.
Tbanks

(4.00 out of 5)