PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This may not invlove php (i'm not sure) but is it possible to open for example my documents from a webpage? Ive tried a few ways but no luck, it either does nothing at all or just shows a page cannot be found message.
find the last occurence of '/' using regex and find the length of the string.
If you have the position of the last occurence of '/', then you can read each character from then to the length of the string - 1
if you want the path of a currently running doc, use $_SERVER['DOCUMENT_ROOT']
look at $_SERVER globals for more options http://uk.php.net/reserved.variables
basically what I want is too very simply link to a folder on the users machine, eg if the user browses to the folder C:\stuff\ and submits then the script pops it open, I need to know how to open users folder from a webpage.