Re: DBF + PHP
| From: | Luke | Date: | Thu, 19 Jul 2007 17:34:34 +0000 |
| Subject: | Re: DBF + PHP | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43808@lists.php.net to get a copy of this message | ||
> What errors are you getting? Check file permissions, maybe you can't
> read/write the file.
I get warning:
Warning: dbase_open() [function.dbase-open]: unable to open database
c:\temp\test.dbf in /usr/local/lappstack-1.1/apache2/htdocs/dbase.php on
line 8
In php.ini I have safe_mode=off. Even if I wont simple change a directory
by:
echo getcwd() . "\n";
chdir('c:\\temp');
echo getcwd() . "\n";
I get this warning:
/usr/local/lappstack-1.1/apache2/htdocs
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in
/usr/local/lappstack-1.1/apache2/htdocs/dbase.php on line 5
/usr/local/lappstack-1.1/apache2/htdocs
And how you see the directory does't change :(((((((((
Some propositin?
THANKS ALL :)
echo getcwd() . "\n";
chdir('c:\\Przewozy\\BAZY');
echo getcwd() . "\n";
$db = dbase_open("c:\\Przewozy\\BAZY\\Ceny.dbf", 0);
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/