Jump to content


streaming symlink PHP help

  • Please log in to reply
1 reply to this topic

#1 barsa



  • Members
  • Pip
  • 54 posts

Posted 25 October 2005 - 01:22 PM

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.
Technology Department

#2 mathgirl1010


    On the road again...

  • Members
  • PipPipPip
  • 189 posts

Posted 25 October 2005 - 05:19 PM

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users