PHP - Moved: 403 Forbidden
This topic has been moved to Apache HTTP Server.
http://www.phpfreaks.com/forums/index.php?topic=315259.0 Similar TutorialsThis is the error I got Forbidden You don't have permission to access /LoginSystem/< on this server. In the url http://localhost/LoginSystem/%3C?%20echo%20$_SERVER[%27PHP_SELF%27];?%3E Code: [Select] <?php /* This script was downloaded at: LightPHPScripts.com Please support us by visiting out website and letting people know of it. Produced under: LGPL */ /* Start session */ if($startSession == TRUE){ session_start();} /* Config file */ include('config.php'); /* Check for submition */ if($_POST['submitID'] == 2){ /* Connect to database & query */ if($connectDatabase == TRUE){$action=TRUE;include('connect.php');} /* sanitize and check info */ $userName = mysql_real_escape_string($_POST['userName'],$dbc); $password = mysql_real_escape_string($_POST['password'],$dbc); if($userName == NULL) { $message = 'Please enter username.';} if($message == NULL && $password == NULL){ $message = 'Please enter password.';} if($message == NULL && $password != $_POST['password2']){ $message = 'Passwords do not match.';} if($message == NULL) { $userQuery = mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM `$tableName` WHERE `$userNameField`='$userName'")); if($userQuery[0] > 0){ $message = 'This username already exists. Please select another.'; } else { /* Add user */ $addUser = mysql_query("INSERT INTO `$tableName` (`$userNameField`,`$userPasswordField`) VALUES ('$userName','$password')"); if($addUser) { /* Disconnect from database */ if($connectDatabase == TRUE){$action=FALSE;include('connect.php');} /* Log use in */ $_SESSION['isLoged'] = 'yes'; $_SESSION['userName'] = $userName; /* add cookies ?*/ /* expire in 1 hour */ if($useCookies == TRUE) { setcookie("isLoged", 'yes', time()+logedInFor, "/", ".$domainName", 1); setcookie("userName", $userName, time()+logedInFor, "/", ".$domainName", 1); } /* Redirect to login page */ header("Location: $loginPage"); exit(); } else { $message = 'Internal error. Please contact administrator.'; } } } /* Disconnect from database */ if($connectDatabase == TRUE){$action=FALSE;include('connect.php');} } ?> <!-- /* This script was downloaded at: LightPHPScripts.com Please support us by visiting out website and letting people know of it. Produced under: LGPL */ --> <?php /* Display error messages */ if($message != NULL){?> <table width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFCCCC"> <tr> <td><div align="center"><strong><font color="#FF0000"><?=$message;?></font></strong></div></td> </tr> </table> <?php } ?> <form action="<? echo $_SERVER['PHP_SELF'];?>" method="post" name="register" id="register" style="display:inline;"> <table width="100%" border="1" align="center" cellpadding="5" cellspacing="0" bordercolor="#99CC33"> <tr bgcolor="#99CC99"> <td colspan="2"><div align="center"><strong>Please enter registration information: </strong></div></td> </tr> <tr> <td width="47%"><strong>Username:</strong></td> <td width="53%"><input name="userName" type="text" id="userName"></td> </tr> <tr> <td><strong>Password:</strong></td> <td><input name="password" type="password" id="password"></td> </tr> <tr> <td><strong>Re-enter password: </strong></td> <td><input name="password2" type="password" id="password2" /></td> </tr> <tr> <td colspan="2"><div align="center"><font face="Georgia, Times New Roman, Times, serif"><strong> <input name="Submit" type="submit" id="Submit" value="Register"> <input name="submitID" type="hidden" id="submitID" value="2"> </strong></font> </div></td> </tr> <tr> <td colspan="2"><div align="right"><a href="http://lightphpscripts.com" target="_blank"><font size="1">Powered by LPS</font></a> </div></td> </tr> </table> </form> Hello, I have a site that i built about 2 years ago, and has worked fine with often usage since. Today, I get the Forbidden error on the executed document when going to edit a record. Funny thing is, i can insert into the textarea anything except the code that i am using, which is an iframe. Perms are 755 and as i have said, this has worked fine up until today... any thoughts? thanks for you help Joe. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=343318.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=313579.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=315910.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=333865.0 This topic has been moved to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=345722.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=342919.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=319767.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=328753.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=328917.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=356314.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=328845.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=309960.0 This topic has been moved to PHP Installation & Configuration. http://www.phpfreaks.com/forums/index.php?topic=319595.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=356760.0 This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=314397.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=342987.0 This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=327250.0 This topic has been moved to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=331097.0 |