Checking URL Segments?
Posted: Sun May 23, 2004 1:12 pm
I've got a weblog that uses the ExpressionEngine blogging CMS, which is written in PHP.
I'm trying to get one of my templates to include some PHP code that will check the URL segments of the URL that loaded it.
In a post on the EE forums, I got this advice:
I'm trying to get one of my templates to include some PHP code that will check the URL segments of the URL that loaded it.
In a post on the EE forums, I got this advice:
What's the correct way to do this in PHP? Thanks very much in advance for any info.You could check the URL segments. If there's an entry ID or "URL Title" then you know it's from a permalink.