I'm getting an error Notice: Undefined variable: temp. Event though my variable temp is declared;

if(isset($_POST['saveHomePageDescription']))
			$temp = 'hello';
			writef("./homePageDescription.txt",$temp);
Member Avatar

writef?

do you mean fwrite?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.