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?
Page 1 of 1
Getscriptfile() Without The File?
#2
Posted 01 January 2013 - 02:27 AM
Dear Friend
It can be done in the following way.
Regards
It can be done in the following way.
dirname(Yii::app()->request->getScriptFile());
Regards
Share this topic:
Page 1 of 1

Help












