English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

say you have a system that is supposed to simulate multiple users having their own folder like

www.yahoo.com/myfolder

is there a wayin PHP to actually read that "myfolder" variable but really not have to create the physical folder on the server?

Thanks in advance,

2006-10-18 06:16:49 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

Yes, if you configure the 404 (file not found) action to point to a PHP script. That script can analyze the path request and perform the appropriate actions.

You can also make URLs like
http://www.mywebsite.net/users.php/username
where the users.php script performs that action. There is a server variable that stores the remaining portion of the path; I can't remember offhand what it's called but if you make a phpinfo() output in users.php you can test it and find out easily.

2006-10-18 06:25:42 · answer #1 · answered by poorcocoboiboi 6 · 0 0

yes, but its a real pain. it really will save time and effort to just make the folder, that and you can encouter problems with ppl uploading files that have the same name as tohers and over writing data and so forth.

2006-10-18 13:31:54 · answer #2 · answered by icelotuskun 3 · 0 0

Yes. You need to enable and configure an Apache module called mod_rewrite.

2006-10-20 01:20:06 · answer #3 · answered by NC 7 · 0 0

fedest.com, questions and answers