Jump to content

[SOLVED] PHP_SELF: Just the directory + page name.


Michan

Recommended Posts

Hi guys,

 

I'm stuck with PHP_SELF. The following gives me the directory without http://www.blah.com and the extension.php:

 

rtrim(dirname($_SERVER['PHP_SELF']), '/\\');

 

...But how do I get the extension.php?

 

I'd like to output the following:

 

directory/whatever/blah.php

 

Can anyone help me here, please?

 

Thanks in advance.

 

- Mi

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.