>>I have a similar hack working on Apache/Linux,
>>but I could never get it working on Apache/Win98.

>>Not a big deal, but has anyone tried this on windows?  I cannot issue the
>>ForceType application/x-httpd-php  directive
>>and the URL rewrite also gave me more trouble then it was worth.

Intall php as a module and you can then use the ForceType directive.  I use
it on win 98/apache and it works well.  There is a good article on this on
phpbuilder.

Also, if you haven't already, look at using variable variables for parsing
your url.  You don't have to rely on a consistent url structure to give you
the variables and values you need.

 /*
 **Blow up url
 */
 $url_array=explode("/",$PATH_INFO); //BREAK UP THE URL PATH USING '/' as
delimiter
 if(isset($url_array[1])) $go_one=$url_array[1];           //Type of
Activity - eg. action
 if(isset($url_array[2])) $$go_one=$url_array[2];         //Value of
Activity
 if(isset($url_array[3])) $go_two=$url_array[3];           //Variable1
 if(isset($url_array[4])) $$go_two=$url_array[4];         //Value of
Variable 1
 if(isset($url_array[5])) $go_three=$url_array[5];        //Variable2
 if(isset($url_array[5])) $$go_three=$url_array[6];       //Value of
Variable 2

so:
www.test.com/fun/house/street/2
parsed by the script above

creates
a variable named $fun
which has the value "house"

&

creates
a variable named $street
which has the value 2

Kevin



_______________________________________________
FreeTrade-dev mailing list
[EMAIL PROTECTED]
http://share.whichever.com/mailman/listinfo/freetrade-dev

Reply via email to