Jump to content

Get all url segments at once


suntrop
 Share

Recommended Posts

Hi all! I need to pass a filesystem path (eg my/files/here) via URL and access the full path (URL segments) in a template. 

I am wondering if there is some way to use PW built in input/url segment functions?

Currently I am using 

ltrim($_SERVER[REQUEST_URI], $page->path)
Link to comment
Share on other sites

Maybe I could ask in this topic if PW can handle URIs with special characters?

I get a 404 error when I try to open

example.com/downloader/file%20with-space.txt or

example.com/downloader/file-with-á-special-character.txt or

example.com/downloader/Champs-%C3%89lys%C3%A9es.txt

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...