Jump to content

Parsing files, weird problem


markspec87

Recommended Posts

I have a peice of code in my config.php which reads an ini style file to get the database details

The 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

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.