How to access PHP methods inside a Javascript?
<p>I have made a method which will delete a file.
first i echo the url to this file.
like this </p>

<pre><code>echo "&lt;a href='$fulr'&gt;$filename&lt;/a&gt;";
</code></pre>

<p>now basicaly i want to call the function <code>deletefile($file);</code>
how can i do it like this </p>

<pre><code>echo "&lt;a onclick='$this-&gt;deletefile($filename)' href='$fulr'&gt;$filename&lt;/a&gt;";
</code></pre>

<p>is that even posible? </p>

<p>Or how can i implement something similiar inside the php code?</p>
