xampp mac ftp_site
<p>I am trying to run the following php script on localhost</p>

<pre><code>$con = ftp_connect("localhost");
if (!$con) die("unable to connect to ftp server");

if(!ftp_login($con,"nobody","xampp")) die ("login error!");

if(ftp_site($con, "CHMOD 0777 loginxml")){
echo "true.";
}else{
echo "false.";
}
</code></pre>

<p>where loginxml is the folder name. However, I am getting the following warning.</p>

<pre><code>Warning: ftp_site() [function.ftp-site]: CHMOD 0777 loginxml: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/loginxml/ftp.php on line 7
</code></pre>

<p>I am using xampp on a mac. I have tried to search for an answer but without success. Any help would be appreciated.</p>

<p>thanks.</p>
