Hi,
I am developing with PHP 4.3.8-12 on a Debian Linux server and I am trying to use fopen.
Hoever, the following code complains about not finding the file.
$file = "adress_samp.xml";
...
$fp = fopen($file, "r");
if (!$fp) {
die("could not open XML input");
}
I get the same error via the command-line and through a web page:
Warning: fopen(adress_samp.xml): failed to open stream: No such file or directory in /home/cair/www/samp/xml2html_brown.php on line 131
could not open XML input
The file xml2html_brown.php is in the same directory as address_samp.xml and permissions are 777 for both. I have tried to specify the complete path, partial path, concatenate the server path variable to the front with the same error every time. Can anyone suggest something?
Brian