![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
|
Register user
Join Date: Nov 2005
Location: Australia
Posts: 66
OS: Dual-Boot: Microsoft Windows XP x64 Edition & Red Hat Linux Fedora Core 4
|
PHP wildcarding
ok, i'm modifying this upload script (which currently lets users access anywhere on the site)
So far i have finished the entire script...except one thing.. Is there any way to create a wildcard on the end of a directory to allow access to a directory and any folders beyone it? PHP Code:
|
|
|
|
|
|
#2 (permalink) |
|
Cymru am byth
|
* will usually do the trick, see if that works.
Code:
if ($directory == 'C:\Documents and Settings\Administrator\My Documents\Web\Apache\Hosting\*'){
__________________
Living with Louie dog's the only way to stay sane _____________________________________________ ... and with those words so begins my lifetime of longing for the devil's warm embrace |
|
|
|
|
|
#3 (permalink) |
|
Register user
Join Date: Nov 2005
Location: Australia
Posts: 66
OS: Dual-Boot: Microsoft Windows XP x64 Edition & Red Hat Linux Fedora Core 4
|
Don't worry i solved this myself:
PHP Code:
|
|
|
|
![]() |
| Thread Tools | |
|
|