Hi,
Look at this code bit ..
[code]
echo ‘<a href=”http://example.com/department_list_script/’,
rawurlencode(‘sales and marketing/Miami’), ‘”>’;
Puzzling why rawurlencode() is used on part of path and not full path.
This is the link that needs urlencode():
My question is, why not either use rawurlencode() on full path like this:
[code]
echo ‘<a href=”http://example.com/’,
rawurlencode(‘department_list_script/sales and marketing/Miami’), ‘”>’;
Or, like this:
[code]
echo ‘<a href=”http://example.com’,
rawurlencode(‘/department_list_script/sales and marketing/Miami’), ‘”>’;
There are 3 DIRs and they used rawurlencode() on the last 2 DIRs only. Why ignore the first DIR: ‘department_list_script.
That is the puzzle.