RE: Re: XMLDiff is not working in browser but working in command line

"Anatol Belski" <[email protected]> Thu, 26 Nov 2015 02:17:25 +0100
Newsgroups gmane.comp.php.windows
Message-ID <[email protected]>
Hi Ganesh,

> -----Original Message-----
> From: Ganesh Babu N [mailto:[email protected]]
> Sent: Monday, November 23, 2015 11:56 AM
> To: [email protected]
> 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


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php