Symbolic links in php
<p>I am trying to create a symbolic link in php, on linux</p>

<p>if i create the link manually with ln -s targetfile linkfile it works just fine</p>

<p>if i try </p>

<pre><code>&lt;?php

symlink($targetfilefullpath, $linkfilefullpath) ; 
?&gt;
</code></pre>

<p>nothing happens, there is no link</p>

<p>also if i try</p>

<pre><code>&lt;? php
shell_exec("ln -s ".$targetfilefullpath." ".$linkfilefullpath);
?&gt;
</code></pre>

<p>also nothing happens, there is no link</p>

<p>all the targetfiles and folders have chmod 777</p>

<p>what could be wrong ?</p>
