running this script command line...
 
$temp_file = "temp_file.txt";
if( !file_exists( $temp_file ) )
{
 touch( $temp_file ) or die( "couldn't create new file" );
}
$fp = fopen( $temp_file, "wb" ) or die( "file opening failed" );
fwrite( $fp, $cvs ) or die( "write file failed" );
fclose( $fp );
 
doesn't write to file. the $cvs is there, nice little comma delimited
string waiting to be put into my file. if i run this off my web server,
it runs fine. but i need to run it command line, and it just gives me
the error "write file failes". dunno why. tried changing it to fputs,
and also added the touch line in there incase it was having trouble
creating the file... which it's not, coz the file gets created fine.
 
any help please? :)

chris kranz
 <http://www.fatcuban.com/> fatcuban.com

 

 

Reply via email to