Jump to content
Sign in to follow this  
barsa

streaming symlink PHP help

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.