DOM problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rskumar20
Forum Newbie
Posts: 3
Joined: Fri Oct 06, 2006 5:01 am

DOM problem

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Re: DOM problem

Post 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
Post Reply