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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ganesh,

> -----Original Message-----
> From: Ganesh Babu N [mailto:nbabuganesh@xxxxxxxxx]
> Sent: Monday, November 23, 2015 11:56 AM
> To: php-windows@xxxxxxxxxxxxx
> Subject:  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





[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux