Jump to content

Trying To Write A Variable To A Text File


badrobot
 Share

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

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
 Share

×
×
  • Create New...