Jump to content

Trying To Write A Variable To A Text File


badrobot

Recommended Posts

This is straight forward, I'm sure I'm doing something wrong.... I am just trying to write this variable to a .txt fileIt does create and open the file correctlyBut instead of writing to the .txt file it outputs it to the browser.

				$order=fopen("/upload/".$filenam.".txt","a");				for ($i = 0; $i < 50; $i++) 				{			echo $itemnum[$i].$qtynum[$i];				}	fclose($order);

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...