Şimdi Ara

localhostta çalışan script, uzak sunucuda login olmuyor

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
2 Misafir - 2 Masaüstü
5 sn
6
Cevap
0
Favori
741
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • localhosta bi script kurdum sorunsuz herşey çalıştı, gerekli düzenlemeleri yaptım, sonra düzenlediğim şekilde db yedeğini aldım, sunucuma aktardım kurulumu yaptım, herşey sorunsuz fakat üye girişi yapmaya çalıştıgımda, sunucu hiç tepki vermeden sayfa yenileniyor, ne şifre hatalı diyor ne de başka bir şey, sorun nedir sizce?



  • İK SEBEP OLABİLİR
    BİRİNCİSİ
    Localhost ta post ile gönderilen bilgiler direk değişkene atanır ancak bu serverlarda direk olmaz bunun için
    örnek olarak
    $k_adi = $_POST['k_adi'];

    gibi post ile gelen form değişkeni içerde değişkene atanmalıdır problem bundan kaynaklı olabilir.

    YADA

    kullanıcı session ile atanıyorsa Hosting firmalarının bazılarında session özellikleri kapatılmış yada kısıtlanmış olabilir.
    bunu tekil hosttan açtırman gerekecektir. bu ayarları muhtemelenwww.site .com/info.php den görebilirsin.
  • bunun için incelemem gereken dosya hangisi acaba? login.php dosyası mı? acil yardıma ihtiyacım var, peki hostun linux yada windows tabanlı server olması bunda etkili olabilir mi?
  • sayfanın en üstünde görülen hatalar bunlar;

    Warning: session_start(): open(sess\sess_1d5f0d9082818e11afa5b6c821f6ef2b, O_RDWR) failed: Permission denied (13) in C:\Inetpub\vhosts\xxxlisesi.com\httpdocs\oto\index.php on line 10

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Inetpub\vhosts\xxxlisesi.com\httpdocs\oto\index.php:10) in C:\Inetpub\vhosts\xxxlisesi.com\httpdocs\oto\index.php on line 10

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\vhosts\xxxlisesi.com\httpdocs\oto\index.php:10) in C:\Inetpub\vhosts\xxxlisesi.com\httpdocs\oto\index.php on line 10

    sayfanın en altında ise;

    Warning: Unknown(): open(sess\sess_1d5f0d9082818e11afa5b6c821f6ef2b, O_RDWR) failed: Permission denied (13) in Unknown on line 0

    Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (sess) in Unknown on line 0


    bu hataları alıyorum..




  • seninkiler septik ' in bahsettiği ikinci sorun galiba,
    session haaları alıyorsun, kısıtlama olabilir, ya da bu özellik kapalıdır
  • index.php nin kodları bunlar
    <? 
    //Php Configurations
    header("Content-Type: text/html; charset=UTF-8");
    error_reporting ("0");
    ini_set("asp_tags","1");
    ini_set("session.bug_compat_42",0);
    ini_set("session.bug_compat_warn",0);
    ini_set("session.use_trans_sid",0);
    session_save_path("sess");
    session_start();
    ob_start();


    //Main Constants
    define("__MainDir__","/"); //Relative Address of Main directory
    define("__MainPath__","www.aygunler.com.tr/oto");//Http address of main directory

    // Language Parsing
    if(isset($_GET["lang"])){
    $_SESSION["lang"] = $_GET["lang"];
    }else if(!isset($_SESSION["lang"])){
    $_SESSION["lang"] = "tr";
    }
    define("__Lang__",$_SESSION["lang"]); //Selected Language

    //Language Include
    include("lang/lang_".__Lang__.".php");

    //Contents and blocks Array
    $Contents = array();
    $Blocks = array();

    require_once("class/db.inc.php");

    //Predefined Variables
    include_once("predefined.php");

    include_once("functions.php");

    if(!isInstalled())
    {
    goto("install.php");
    exit();
    }

    //Base Classes
    include_once("class/Class.Config.php");

    //Load Site Configurations
    $Cfg = new Config();

    //Counter
    if(!isset($_SESSION["IpNo"])){
    $_SESSION["IpNo"] = $_SERVER['REMOTE_ADDR'];
    $temp = array();
    $ost = new RecordSet(__DBPrefix__ . "onlinestats");
    $ost->Select("where ipNo = '".$_SESSION["IpNo"]."'");
    if($ost->RecordCount > 0){
    $ost->ID =$ost->Current["id"];
    $temp["visit"] = $ost->Current["visit"] + 1;
    $temp["status"] = 1;
    $temp["logDate"] = time();
    $unique = false;
    }else{
    $ost->AddNew();
    $temp["visit"] = 1;
    $temp["ipNo"] = $_SERVER['REMOTE_ADDR'];
    $temp["status"] = 1;
    $temp["logDate"] = time();
    $unique = true;
    }
    $ost->Current = $temp;
    $ost->Update();



    $temp = array();
    $st = new RecordSet(__DBPrefix__ . "stats");
    $st->Select();
    $st->ID = $st->Current["id"];
    if($unique)
    $temp["visitor"] = $st->Current["visitor"] + 1;
    $temp["visit"] = $st->Current["visit"] + 1;
    $st->Current = $temp;
    $st->Update();

    }else{
    $ost = new RecordSet(__DBPrefix__ . "onlinestats");
    $ost->Select("where ipNo = '".$_SESSION["IpNo"]."'");
    $ost->ID =$ost->Current["id"];
    $temp["status"] = 1;
    $temp["logDate"] = time();
    $ost->Current = $temp;
    $ost->Update();
    }

    $start1 = time() - 600;
    $start2 = time() - (24*60*60);

    mysql_query("delete from ".__DBPrefix__."onlinestats where logDate < $start2");
    mysql_query("update ".__DBPrefix__."onlinestats set status = '0' where logDate < $start1");

    //Url Parsing
    $CurrentPage="";
    $CurrentModule="";
    $CurrentModuleConfig="";
    if(isset($_GET["do"])){
    $parts = split("/",$_GET["do"]);
    $CurrentModuleConfig = "modules/".$parts[0]."/config.php";
    $CurrentPage = "modules/".$parts[0]."/".$parts[1].".php";
    $CurrentModulePage = $parts[1];
    $CurrentModule = $parts[0];
    }else{
    $CurrentModuleConfig = "modules/static/config.php";
    $CurrentPage = "modules/static/start.php";
    $CurrentModulePage = start;
    $CurrentModule = "static";
    }
    if(!file_exists($CurrentModuleConfig) || !file_exists($CurrentPage)){
    exit(__PAGENOTFOUND__);
    header("Location : index.php?do=static/redir");

    }

    include_once("class/Class.RecordSet.php");
    $reklam = new RecordSet(__DBPrefix__."reklamlar");
    $reklam->Select("where id=1");
    if(is_array($reklam->Current)){
    foreach($reklam->Current as $key=>$val){
    $reklam->Current[$key]=stripslashes($val);
    }
    }

    //Include Module config file
    include($CurrentModuleConfig);


    //Standart Functions
    include_once("functions.php");


    if (!isInstalled()) {
    goto("install.php");
    exit();
    }

    ////////////////////
    allowUsers();
    //////////////////////

    //Create PHPLiveX Instance
    include_once("class/PHPLiveX.php");
    $plx = new PHPLiveX();

    //Include Current Page
    include($CurrentPage);

    ?>

    <script language="javascript"><?=$plx->Run(); ?></script>
    <script language="javascript">

    function PostData(){
    var y = document.getElementById("data_models")
    var hdn_town = document.getElementById("h_models")
    var temp = ""
    for (i=0;i<y.length;i++){
    temp = temp + y.options[i].value + ","
    }
    hdn_town.value = temp;
    return true;
    }
    // Form Validation

    function NumberOnly(id) {

    var elm = document.getElementById(id)
    var val = document.getElementById(id).value
    var match = /^\d+$/.test(val)
    if (val=="")
    match=1
    if (!match) {
    alert ("<?=_NumberOnly_?>")
    elm.style.backgroundColor = "#eeeeee"
    elm.focus()
    return false
    }
    return true
    }

    function ValidEmail(id) {
    var elm = document.getElementById(id)
    var val = document.getElementById(id).value
    var match = /^\S+\@\w+(\.\w+$)|(\.\w+\.\w+$)/.test(val)
    if (!match) {
    alert ("<?=_InvalidEmail_?>")
    elm.style.backgroundColor = "#eeeeee"
    elm.focus()
    return false }
    return true
    }

    function NotEmpty(id) {
    var elm = document.getElementById(id)
    var val = document.getElementById(id).value
    if (val=="") {
    alert ("<?=_NotEmpty_?>")
    elm.style.backgroundColor = "#eeeeee"
    elm.focus()
    return false }
    return true
    }

    function StringOnly(id) {
    var elm = document.getElementById(id)
    var val = document.getElementById(id).value
    var match = /^\w+$/.test(val)
    if (val=="")
    match=1
    if (!match) {
    alert ("<?=_StringOnly_?>")
    elm.style.backgroundColor = "#eeeeee"
    elm.focus()
    return false }
    return true
    }

    function FormValidate(id) {

    var id
    switch (id)
    {
    case "pref":
    if(!NotEmpty("onshow") || !NotEmpty("onurgent") || !NumberOnly("onshow") || !NumberOnly("onurgent") || !NumberOnly("motorshow") || !NumberOnly("motorurgent"))
    return false
    break

    case "addauc":
    case "editauc":
    case "edituserauc":
    case "addmotor":
    case "editmotor":
    case "editusermotor":
    if (!NotEmpty("make") || !NotEmpty("model") || !NotEmpty ("type") || !NotEmpty("body") || !NotEmpty("fuel") || !NotEmpty("transmission") || !NumberOnly("engine") || !NumberOnly("volume") || !NotEmpty("color") || !NotEmpty("year") || !NotEmpty("drive") || !NotEmpty("price") || !NotEmpty("currency") || !NotEmpty("sellertype"))
    return false
    break

    case "sendauc":
    case "sendmotor":
    if (!NotEmpty("make") || !NotEmpty("model") || !NotEmpty ("type") || !NotEmpty("body") || !NotEmpty("fuel") || !NotEmpty("transmission") || !NumberOnly("engine") || !NumberOnly("volume") || !NotEmpty("color") || !NotEmpty("year") || !NotEmpty("drive") || !NotEmpty("price") || !NotEmpty("currency") || !NotEmpty("sellertype") || !NotEmpty("firstname") || !NotEmpty("surname") || !NotEmpty("email") || !NotEmpty("phone") || !NotEmpty("cell"))
    return false
    break

    case "support" :
    if (!NotEmpty("isim") || !NotEmpty("soyisim") || !NotEmpty("mesaj"))
    return false
    break

    case "adddetail":
    case "addmodel":
    case "addmake":
    if (!NotEmpty ("label"))
    return false
    break

    case "searchauc" :
    if(PostData())
    return true
    else return false
    break

    case "searchmotor" :
    if(PostData())
    return true
    else return false
    break

    case "detayli" :
    if (!NotEmpty ("isim")||!ValidEmail("email"))
    return false
    document.getElementById("link1").value = document.location.href
    break

    case "arkgonder" :
    if (!NotEmpty ("isim1") || !NotEmpty("isim2") || ! ValidEmail ("email1") || ! ValidEmail("email2"))
    return false
    document.getElementById("link2").value = document.location.href
    break

    case "editcur" :
    var elm = document.getElementById("ratio")
    var val = document.getElementById("ratio").value
    var match = /(^\d+\.\d+$)|(^\d+$)/.test(val)
    if (!match) {
    elm.style.backgroundColor = "#eeeeee"
    elm.focus()
    return false
    }
    break

    case "addrequest" :
    PostData();
    if(!NotEmpty("make_r") || !NotEmpty("type_r") || !NotEmpty("price1") || !NotEmpty("price2") || !NotEmpty("currency"))
    {
    return false;
    }
    break

    case "editrequest":
    PostData();
    if(!NotEmpty("make_r") || !NotEmpty("type_r") || !NotEmpty("price1") || !NotEmpty("price2") || !NotEmpty("currency"))
    return false;
    break

    } //end switch

    return true

    } // end function

    function DeleteList() {
    document.getElementById("data_models").length = 0
    }

    function AlreadyAtList(element) {

    y =document.getElementById("data_models")
    for (i = 0; i < y.length; i++) {
    value = y.options[i].value;
    if (element == value) return true;
    }
    return false;
    }

    function AddToList() {
    x = document.getElementById("data_model")
    y = document.getElementById("data_models");
    if (x.selectedIndex==-1)
    alert ("<?=_NoModelSelected_?>")
    if (AlreadyAtList(x.options[x.selectedIndex].value))
    exit()
    y.length++
    y.options[y.length-1].value= x.options[x.selectedIndex].value
    y.options[y.length-1].text= x.options[x.selectedIndex].text
    }

    function DeleteFromList() {
    y = document.getElementById("data_models");
    if (y.selectedIndex==-1){
    alert ("<?=_NoModelSelected_?>")
    return false
    }

    if(y.length==1){
    DeleteList()
    return
    }
    else if (y.selectedIndex==y.length-1){
    y.length--
    return
    }

    else if (y.selectedIndex==-1){
    alert ("<?=_NoModelSelected_?>")
    return
    }
    else {
    for (i=y.selectedIndex;i<y.length-1;i++)
    y.options[i] = y.options[i+1]
    }

    return true

    }

    function AddAll() {
    x = document.getElementById("data_model")
    y = document.getElementById("data_models");
    DeleteList()
    for (i=0; i<x.length; i++) {
    y.length = x.length
    y.options[i].value = x.options[i].value
    y.options[i].text = x.options[i].text
    }
    }


    ob_end_flush();
    </script>



    php.ini dosyasının editlenmesi yada .htaccess adlı dosya oluşturma ile çözüm getirilebileceğini duydum fakat bu konuda yeterli bilgim yok, aklakası olabilir mi bunlarla ?




  • Yapay Zeka’dan İlgili Konular
    Daha Fazla Göster
    
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.