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
php yardım !
4
●657
- 02-07-2007, 00:01:10Sanırım bir yol hatası var ama o da sunucu türüne göre değişiklik gösterir.kri-art adlı üyeden alıntı: mesajı görüntüle
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/';
