Take the 2-minute tour × $title = $_POST['title']; $filename =
$title , ".php"; $fh = fopen($filename, 'w') or die ("can't open
file"); $stringData = $title; fwrite($fh, $stringData);
$stringData = $blog; fwrite($fh, $stringData);  This is only a
sample. What is the correct code for that?  share|improve this
question Correct code for what, exactly? You need to be more
specific with your question. –  Andy E Apr 16 '10 at 17:51 add
comment  2 Answers  up vote 1 down vote accepted  You are using
the correct code there, what is the point?  Also note that you
are using a comma rather than a dot to concatenate strings at:
$filename = $title , ".php"; share|improve this answer This is
the error shows if i use that code.... I don't know why but it
says that the comma has an error... "Parse error: syntax error,
unexpected ',' in C:\Program Files\xampp\htdocs\Jordan
Pagaduan\blog_creator.php on line 11" –  Jorge Apr 16 '10 at
17:59 @Jordan: as Sarfraz said in his answer, concatenation is
done with a ., not a ,. Swap t