I am using the following to create "email.xml":
@unlink("$userPath/xml/email.xml"); // FOR SOME REASON IT DOES NOT CLEAR OUT CONTENT USING 'w' OPTION
if (!file_put_contents("$userPath/xml/email.xml", $contents, 'w')) $isSuccessful = false;
if ($isSuccessful) chmod("$userPath/xml/email.xml", 0700);
if ($isSuccessful) chown("$userPath/xml/email.xml", 'me');
if ($isSuccessful) $msg = exec("chown me:users \"$userPath/xml/email.xml\"");
if ($msg) print_r($msg);
I can verify that email.xml exists later on by doing this:
echo file_get_contents("$userPath/xml/email.xml");
And I see the XML file, but whenever I telnet, use FTP, etc., I never see the file listed, even though I am clearly looking at the correct directory, even looking at other directories, but I can't ever find it.
Any ideas as to why this is happening?