RE: [PHP-WIN] Re: XMLDiff is not working in browser but working in command line

From: Date: Thu, 26 Nov 2015 01:17:25 +0000
Subject: RE: [PHP-WIN] Re: XMLDiff is not working in browser but working in command line
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-31364@lists.php.net to get a copy of this message
Hi Ganesh, > -----Original Message----- > From: Ganesh Babu N [mailto:nbabuganesh@gmail.com] > Sent: Monday, November 23, 2015 11:56 AM > To: php-windows@lists.php.net > Subject: [PHP-WIN] Re: XMLDiff is not working in browser but working in > command line > > Hi , > > i have tried working with XMLDiff\File with the following code: > > <?php > $file1=1.xml; > $file2=2.xml; > $dxml=new XMLDiff\File; > $diff = $dxml->diff($file1, $file2); > echo $diff; > > ?> > > The code is working fine in command line PHP. and not working when I called > the script via web browser. > > Is anything i am doing wrong here? > Shouldn't it be "1.xml" instead of 1.xml? But besides that, server is probably changing CWD, so using an absolute path should be the solution. Thanks Anatol

« previous php.windows (#31364) next »