Debt Consolidation - Web directory - WoW Gold - Business Gifts - Find jobs

PDA

View Full Version : fwrite error


Voimis
Oct 1st 2007, 11:13 am
<?php

$artist = $_POST['artist'];
$year = $_POST['year'];
$name = $_POST['name'];

$row = $artist . $year . $name;

$listing = fopen("recordlist.txt","a");
fwrite($listing, $row . "\n");
fclose($listing);
header('Location: recordlist.txt');

?>

It doesn´t work and I can´t find the problem. So the code is for posting my cd:s to that recordlist.txt file. Help please!

nico_swd
Oct 1st 2007, 11:18 am
And the error is?

EDIT;

Is the file writable? (Permissions right?)

Voimis
Oct 1st 2007, 11:35 am
Oh my god what a noob I am! Rights were missing :D


Thanks for the help!