22 Jun 2002 mglazer   » (Journeyer)

Responding to the advice from Malx I added a faux PATH_INFO variable in PHPortal.

This basically means anything after the file extensions are trasnformed into an array of variables.

EXAMPLE: http://dev.4arrow.com/index.xpc.text/string1/var1,val1/var2|val2/string2


$x->_URL = Array
   [0] => /index
   [1] => .text/string1/var1,val1/var2|val2/string2


$x->_PATH = Array ( [1] => string1 [var1] => val1 [var2] => val2 [4] => string2 )

All three of these characters are checked and can be used as delimters to create variables and values in urls.


If you click the example link above view source and scroll to the end of the page and look for a XML namespace like so: <xpc:path str... />

You can also play with the link by adding and removing you own paths, delimiters, and variables to see how this works.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!