barsa 0 Report post Posted October 25, 2005 I am having difficulty in this... I've worked with PHP frameworks that map virtuall sub-directories to functions within certain PHP scripts, so /main/edit/ might resolve to some function editMain() in some file. Any idea how to implement this? Mathgirl or other programmer ? Thanks in advance. Quote Share this post Link to post Share on other sites
mathgirl1010 0 Report post Posted October 25, 2005 What are you trying to do ? You should have a directory name correspond to a function in PHP? as for example if you had /this/function/ it would run thisfunction()? You might be able to get it working with a mixture of PHP's FILE functions, and regexp, but you'd have to run loads of checks, because if not, it might be possible to exploit it and do bad things. We all know, bad things are bad.Or are you asking what use this would be? It would be useful if you want to run certian tasks on certian files or directories clearing a temp file, making entries every time something happens to a file or dir, etc. It's even possible to do dynamic functions in PHP. Quote Share this post Link to post Share on other sites