Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Getscriptfile() Without The File?

$
0
0
Hello everyone,

Basically I just need to get the directory without the name at end of file.

Right now, the getScriptFile(); gives me:
/home/user1/public_html/website/index.php

However, I just want:.

/home/user1/public_html/website/

When I put a '../', it shows up as this:

/home/user1/public_html/website/index.php/../dir

How come it doesn't follow the normal conditions where it would go back a directory?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>