Jump to content

csv. program

Timmy_D_Law

Hi guys, 

 

I'm new here, I don't know if i posted my query in the right thread if not can i ask gently to get my topic transfered in the right place.

 

I just created my first little program in php, what i want it to do is to send data from my html form to a spread sheet format (csv), the problem is that when i press submit i prompted this error message by the php parser.

 

If that can be of use my web server runs php version 5.3.10.

 

the php script i try to run is file_get_contets();

 

 

 

Warning: file_get_contents() expects parameter 3 to be resource

 

EDIT: problem solved, I just used another piece of code to write data in spread sheet namely

$fp = fopen($file, 'a+');

fwrite($fp, $data.PHP_EOL);
fclose($fp);
Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×