21 Dec '12

Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

0 Shares

How to get current page name in PHP?

current page name

To get the current page URL that is shown in the browser URL window.

  • Want to make include file with a function
  • Create a link to the page itself
  • Variable added with an querystring

Ex: You can now get the current page URL using the line: <?php echo curPageURL(); ?>

 

This is the method to return the current page file name. Using basename() function and $_SERVER['PHP_SELF'] variable you can get current page name.

 

About Anupa Manipal

A professional Software Developer in VB.NET - SQL Server and learner of PHP. Expertise in implementation of various projects including designing, development, coding and implementation of software applications.

Related Posts

Leave a Reply