I have a template. This template include header, leftColumn, rightColumn and footer. In these, header and footer is no change in any page. I want to take the name of them (example: http://localhost/Demo/function_server_refer/redirect.php --> I need "redirect.php") to know which this page and include some parts corresponding with leftColumn and rightColumn.

This is just me tinkering. I'm sure someone has a better answer, from which I'll learn too.

@ralph_m ; I think that is a fine solution. First time I read the question, I wasn't exactly sure what the original poster wanted, after seeing your response and re-reading his question, the solution seems to fit what I now believe he wants.

This is just me tinkering. I'm sure someone has a better answer, from which I'll learn too.

Hi! Thank a lot ralph.m. I'll try it now. But my page have four columns, three columns in these is change when I direct to any page. I don't want copy code from this file to that file and then use the code of your. Example:

@ralph_m ; I think that is a fine solution. First time I read the question, I wasn't exactly sure what the original poster wanted, after seeing your response and re-reading his question, the solution seems to fit what I now believe he wants.

Hi. So sorry! My english is basic. That's what I want before. I have a problem above.