• 01-07-2007, 23:11:16
    #1
    Üyeliği durduruldu
    S.a arkdaşlar ben bi script kurmaya çalışıyorum youtube benzei bi script bu bi hata var düzenleyemedim bi türlü bi yardımcı olursanız sevinirim ?


    ------
    <?
    error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
    session_start();
    $config = array();
    $config['BASE_DIR'] = '.\home\y4sin\puplic_html\';
    $config['BASE_URL'] = 'http://www.y4sin.com';
    $config['CONF_FILE'] = $config['BASE_DIR'].'/include/conf.ini';
    $config['IMG_DIR'] = $config['BASE_DIR'].'/images';
    $config['IMG_URL'] = $config['BASE_URL'].'/images';
    $config['VDO_DIR'] = $config['BASE_DIR'].'/video';
    $config['VDO_URL'] = $config['BASE_URL'].'/video';
    $config['ADO_DIR'] = $config['BASE_DIR'].'/audio';
    $config['ADO_URL'] = $config['BASE_URL'].'/audio';
    $config['FLVDO_DIR'] = $config['BASE_DIR'].'/flvideo';
    $config['FLVDO_URL'] = $config['BASE_URL'].'/flvideo';
    $config['TMB_DIR'] = $config['BASE_DIR'].'/thumb';
    $config['TMB_URL'] = $config['BASE_URL'].'/thumb';
    $config['baseurl'] = $config['BASE_URL'];
    $config['basedir'] = $config['BASE_DIR'];
    --------

    hata :

    Parse error: syntax error, unexpected T_STRING in /usr/home/y4sin/public_html/include/config.php on line 6
  • 01-07-2007, 23:29:20
    #2
    4. satırı bu şekilde değiştirrek dener misin?
    error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
    session_start();
    $config = array();
    $config['BASE_DIR'] = ".\home\y4sin\puplic_html\";  //4.satır bu
  • 01-07-2007, 23:32:02
    #3
    $config['BASE_DIR'] = '.\home\y4sin\puplic_html\';

    satırını

    $config['BASE_DIR'] = './home/y4sin/puplic_html/';
    şeklinde değiştirip denermisin
  • 01-07-2007, 23:44:02
    #4
    $config['BASE_DIR'] = './home/y4sin/puplic_html';
    sonundaki / 'i kaldırıp bir daha dene istersen, ondan sonra bir de başında . 'yı kaldırıp dene
  • 02-07-2007, 00:01:10
    #5
    kri-art adlı üyeden alıntı: mesajı görüntüle
    zbahadir fark ne göremedim
    __
    ejder aga dedin gibi yaptım
    hata :
    Fatal error: main() [function.require]: Failed opening required './home/y4sin/puplic_html//smarty/libs/Smarty.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/y4sin/public_html/include/config.php on line 44
    orayı düzenlemeden öncede bu hatayı veriyordu yani ilk kurduğumda.
    Sanırım bir yol hatası var ama o da sunucu türüne göre değişiklik gösterir.

    Sunucu windows ise bu yazım normal görünüyor
    $config['BASE_DIR'] = '.\home\y4sin\puplic_html\';

    Linux sunucu ise Ejder'in dediği gibi olmalı.
    $config['BASE_DIR'] = './home/y4sin/puplic_html/';

    Linux sunucu ise bunuda dene
    $config['BASE_DIR'] = '/home/y4sin/puplic_html/';