Jump to content

[SOLVED] is it possible to do this?


ballhogjoni

Recommended Posts

Ok never mind on my last post.

 

I was able to post the current url...but I would like for it to jsut print the main url and the sub folder not the actual html, php file.

 

example:

 

http://file.com/sub_folder

 

instead of

 

http://file.com/sub_folder/index.php

 

Thx I appreciate that. for some reason it din't work. I am trying to figure out why becasue I echoed the . $_SERVER['SERVER_NAME'] . $path_parts['dirname'] and it printed correctly for the page I am on, but my if statement is saying that its not equal to url path.

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.