Page 1 of 1

DOM problem

Posted: Mon Nov 13, 2006 12:56 am
by rskumar20
hi all,

i'm trying to parse a xml file using DOMDocument, but i'm getting the error as

Warning: DOMDocument::load(...jobs.xml) [function.DOMDocument-load]: failed to open stream: Permission denied in ...import.php on line 26

code i used

$doc = new DOMDocument();
$doc->load( 'jobs.xml' );

$jobs = $doc->getElementsByTagName( "jobtitle" );

can anyone help me in tis..
plzzzzzzzzzz

Re: DOM problem

Posted: Mon Nov 13, 2006 5:47 am
by volka
rskumar20 wrote:Warning: DOMDocument::load(...jobs.xml) [function.DOMDocument-load]: failed to open stream: Permission denied in ...import.php on line 26
The process running your script doesn't have the proper permissions to open the file.
see http://en.wikipedia.org/wiki/File_system_permissions