markspec87 Posted November 25, 2006 Share Posted November 25, 2006 I have a peice of code in my config.php which reads an ini style file to get the database detailsThe code starts with[code]$config = parse_ini_file('db.php');[/code]Now the db.php file is in the same folder as this file yet everytime i get the error:[quote]Warning: parse_ini_file() [function.parse-ini-file]: Cannot open 'db.php' for reading in /home/sites/mysite/public_html/includes/config.php on line 3[/quote]But i know for a FACT the file is definitely there. ive chmodded it to allow read write aswell and still it says it cant open it. has anyone got a clue whats going on? Link to comment https://forums.phpfreaks.com/topic/28455-parsing-files-weird-problem/ Share on other sites More sharing options...
Barand Posted November 25, 2006 Share Posted November 25, 2006 Have you still got it open in another app? Link to comment https://forums.phpfreaks.com/topic/28455-parsing-files-weird-problem/#findComment-130280 Share on other sites More sharing options...
markspec87 Posted November 26, 2006 Author Share Posted November 26, 2006 no, its on the web server. i just uploaded it.tried changing filename and link to db1.php but still it doesnt work.confused :( Link to comment https://forums.phpfreaks.com/topic/28455-parsing-files-weird-problem/#findComment-130284 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.