Php flash professional

Need a php expert…

Is it possible for (1)php script to write to to seperate text files? Clarification;

Say something like this partial code,

$ID = $_POST[“ID”];
$STime $_POST[STime];

$filename = “schedule.txt”;
$filename = “time.txt”;

What I’m attempting to do is “ID” post to “schedule.txt” and “STime” post to “time.txt” is this possible or do I need to write a php script for each text file? Or am I way off base here? Now I have gotten “ID” to post to “schedule.txt” but not the other.