Jump to content

[SOLVED] Grab page.php from url


allex01

Recommended Posts

Hi,

 

If my page url look like http://domain.com/memebrs/page1.php?b=3................etc..

How can i grab just page1.php from the URL. I want to be able to set that as a varaible. example $page1="page1.php";

 

Another words i want to be able to grad the page file name that is just before the ?

 

I appriciate your help.

Link to comment
https://forums.phpfreaks.com/topic/112361-solved-grab-pagephp-from-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.