Trying to understand an error
| From: | Lynn | Date: | Fri, 31 Jan 2003 02:42:34 +0000 |
| Subject: | Trying to understand an error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133730@lists.php.net to get a copy of this message | ||
Hello, I am trying to set up an admin in a site on the web. I keep coming up with the following
error message when I try to set up services that this admin will cover:
Warning: file("./conf1.ini") - No such file or directory in
/home/domains/thisoldgranny.com/htdocs/uma/Uma.inc.php on line 1129
This is the code from line 1127-1139 referred to in the warning:
if (is_object($service)) {
$this->service = $service;
$conf = file(SERVICE_CONFIGURATION . $service->get('id') . ".ini");
for ($i = 0; is_array($conf) && $i < count($conf); $i++) {
$conf[$i] = rtrim($conf[$i]);
$line = explode("=", $conf[$i]);
eregi_replace('"+', '', $line[0]);
eregi_replace('"+', '', $line[1]);
$this->config[$line[0]] = $line[1];
if ($line[0] == 'ElementsToManage') {
$this->elementsToManage = explode(',', $line[1]);
}
}
What I need to know is if the real problem is within this section of code or if there is a file
missing that the program should be looking for. Could someone please help me?
Thanks, Lynn