Jump to content

fdf problem


Drauka

Recommended Posts

Hi.

 

I try to read the data from a FDF file, but as of now, I was unable to even open it.

I'm running Windows XP with XAMPP 1.5.5 (so PHP 5.2.0). phpinfo tells me fdf-Support is enabled and fdftk.dll version is 5.0.

 

When I try the following code:

 

if (file_exists("test.fdf")) {
echo "File exists<br>";
if (is_readable("test.fdf")) {
echo "File is readable<br>";

$fdf = fdf_open("test.fdf");
if ($fdf) {
echo "everything is fine, lets go!";
}
else {
echo "Error: ";
echo fdf_error(fdf_errno());
}
}
else {
echo "cannot read file";
}
}
else {
echo "file doesn't exist";
}

 

I get the following result:

File exists.

File is readable.

Error: A file system error occurred or the file was not found

 

What am I doing wrong here? Any ideas?

Thank you!

Link to comment
https://forums.phpfreaks.com/topic/37439-fdf-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.