Закачал файлы на сервер, выставил все права, запускаю 111.php, а она всё время ругается.
Может кто поможет?
Всё время пишет "
failed to open log file
fopen: Permission denied
Premature end of script headers: /pub/home/leica/test/cgi-bin/5/111.php"
Файл 111.php -
include "config.inc";
$db = mysql_connect("localhost","$databaseuser","$databasepasswd");
mysql_select_db("$databasename",$db);
$sql = "CREATE TABLE customer (
firstname varchar(50) not null,
lastname varchar(50) not null,
email varchar(50) not null,
address varchar(50),
zip varchar(10),
city varchar(30),
phone varchar(20),
customerid int4 not null auto_increment,
PRIMARY KEY (customerid),
UNIQUE email (email)
)";
$result = mysql_query("$sql",$db);
$sql = "CREATE TABLE affiliate (
user varchar(50) not null,
password varchar(50) not null,
firstname varchar(50) not null,
lastname varchar(50) not null,
email varchar(50) not null,
address varchar(50),
zip varchar(10),
city varchar(30),
url varchar(50) not null,
phone varchar(20),
payed float(6,2),
affiliateid int not null auto_increment,
PRIMARY KEY (affiliateid, user),
UNIQUE email (email)
)";
$result = mysql_query("$sql",$db);
$sql = "INSERT INTO affiliate VALUES(\'test\',\'test\',\'Test\',\'Testman\',
\'test@test.com\',\'Street\',\'23455\',\'City\',\'
http://www.yahoo.com\',\'055-55555\',0,1111)";
$result = mysql_query("$sql",$db);
$sql = "INSERT INTO affiliatestats (affiliateid, clicks, orders) VALUES (1111,0,0)";
$result = mysql_query("$sql",$db);
$sql = "INSERT INTO productcategory (productid, categoryid) VALUES (1,2)";
$result = mysql_query("$sql",$db);
// header("Location: index.php");
?>
Файл config.inc -
$ashopname = "Ashop-Russian";
$ashopphone = "055-555 55";
$ashopemail = "musor@freeshops.info";
$ashopaddress = "Shop 7, 777 Shoptown";
$databasename = "test";
$databaseuser = "test";
$databasepasswd = "test123";
?>