I created my thesis and used this code to created heading. The document is setted to book class and oneside option. I got a page where both the left and right are number. Instead I would have the page number at the right and at the left the section
\usepackage{fancyhdr}
\pagestyle{fancy}
\makeatletter
\DeclareRobustCommand{\format@sec@number}[2]{{\normalfont\upshape#1}#2}
\renewcommand{\chaptermark}[1]{%
\markboth{\format@sec@number{\ifnum\c@secnumdepth>\m@ne\@chapapp\ \thechapter. \fi}{#1}}{}}
\renewcommand{\sectionmark}[1]{%
\markright{\format@sec@number{\ifnum\c@secnumdepth>\z@\thesection. \fi}{#1}}}
\makeatother
\fancyhf{}
\fancyhead[R]{\itshape\nouppercase{\leftmark}}
\fancyhead[L]{\itshape\nouppercase{\rightmark}}
\fancyhead[L,R]{\thepage}
