View Single Post
Old 09-07-2008, 06:30 PM   PM User | #9
mlacy03
New to the CF scene

 
Join Date: Sep 2008
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
mlacy03 is an unknown quantity at this point
An idea would be to take something like this:
Quote:
/test.php/somepath/var1/var2/index.htm
and either explode it based on a particular number of psuedo-directories after the PHP script.
Example (I can't remember the actual function to make this happen in PHP, however):
PHP Code:
//chop the $inputstring into an array delimited by "/"
//reminds me of a CSV file

$inputstring "/test.php/somepath/var1/var2/index.htm";
$path $inputstring[1];
$var1 $inputstring[2];
//and so on 
mlacy03 is offline   Reply With Quote
Users who have thanked mlacy03 for this post:
ess (09-08-2008)