wantime
asked on
php5: how do i read file from parent directory
hello all,
i have a zend project with followed structure:
Projectname/application/co nfigs/conf ig.ini
Projectname/public/mytest/ test.phtml
in config.ini i have an entry: username = abc
the question is: i would write some codes in test.phtml to check if config.ini exist, if it exist, i would like to get the value of username from this file. any suggestion?
thanks,
wantime
i have a zend project with followed structure:
Projectname/application/co
Projectname/public/mytest/
in config.ini i have an entry: username = abc
the question is: i would write some codes in test.phtml to check if config.ini exist, if it exist, i would like to get the value of username from this file. any suggestion?
thanks,
wantime
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
actually i also would like to read the file. the link followed helps.
http://devilsworkshop.org/parsing-ini-files-using-php/