Re: Use XPTAH v3.0 with W98
Brought to you by:
bs_php,
nigelswinson
From: Pozzer F. <fra...@in...> - 2002-05-31 08:55:47
|
Thanks Peter for your response. I try to replay if your msg and I add same consideration. To the first the problems it is unresolved! Peter Robins wrote: > it looks like you're trying to read a local file with a url which it > can't find. All the other errors are coming because of that. > > 1. does this url actually exist? :-) (can you view it in your > browser?) Yes. It it my desktop localhost. The Path it is: C:\Programmi\Apache Group\Apache\htdocs\FEDRAXPATH\SV\PHP\XML In the httpd.conf I have: ServerRoot "C:/Programmi/Apache Group/Apache" and DocumentRoot "C:/Programmi/Apache Group/Apache/htdocs". If I want to display XMl file Elenchi_Pratiche.xml I f true it to the path of the web_server. I tue it and I can to see it from the browser. > 2. is allow_url_fopen on? it generally is, but you never know . . . Yes. PHP work as apache module. PHP.INI it is in the Windows/system ad all .Dlls are in windows/system. In the PHP.INI I have the doc_root = C:/Programmi/Apache Group/Apache/htdocs and extension_dir = C:/Php/php-4.2.1-Win32/extensions > 3. if all you are doing is reading local files, it would be much > better/faster to read from local filesystem rather than using http Ok this it is very interesting and I think of it about. But the very important I thinks it is the Elenco_Partiche.xml I find after the execute code. It is empty. I have lost all this content: <?xml version="1.0" ?> <Elenco_Pratiche> <RECORD> <Cod_Pratica>null</Cod_Pratica> <Mod_Base>null</Mod_Base> <Denominazione>null</Denominazione> <Ultimo_Agg>null</Ultimo_Agg> <Ultimo_Scar>null</Ultimo_Scar> <Tipo_Scar>null</Tipo_Scar> </RECORD> </Elenco_Pratiche> I am very afrait for this. My last try it is to configure PHp as CGI instead Apache module and at ent ad re-install w98 and Apache and PHP and I try again XPath. Please, replay to my also at my e-mail. Ciao Franco. > > > On Wednesday 29 May 2002 10:00, Pozzer Franco wrote: > > > Thanks for all. I hope to explain well my problem. > > > > > > I have to make same little code PHP to use XPtah for to > > > understand how work it in the XML structure. > > > > > > I have two ENV where I try XPath: WinNT and W98. I describe it: > > > > > > 1. WinNT Server PII AcerPower4100; 250Mhrz; 132MB of RAM > > > In this ENV I have Apache 1.3.24 from the apache.org and PHP > > > 4.2.1 from php.net. > > > I do not use tools for Windows system like PHPTRIAD > > > (www.phpgeek.com) > > > > > > In this ENV XPTAH work fine and the performance are enough good ( > > > I compare it with DOM API Class from this site > > > http://devil.medialab.at/projects/phpdom/doc/phpDOM_Demo.html). > > > > > > In this ENV not problems, > > > now................................................. > > > > > > 2. W98 P133 Unisys 32MB of RAM . > > > Also in this ENV I have Apache 1.3.24 from the apache.org and PHP > > > 4.2.1 from php.net and I do not use any Windows tools for Apache > > > and PHP. > > > > > > In this ENV the same sample and code PHP that work fine in the > > > WinNT ENV do not work. > > > > > > The error that I have it is this: > > > > > > XPath error in Xpath.class.php:1333 In importFromFile(): > > > The url > > > 'http://localhost/FEDRAXPATH/SV/PHP/XML/Elenco_Pratiche.xml' > > > could not be found or read. > > > > > > Warning: Invalid argument supplied for foreach() in > > > C:\Programmi\Apache > > > Group\Apache\htdocs\FEDRAXPATH\SV\PHP\CLASSUTILITY\mieProve\Xpath > > >.class.php on line 1860 > > > > > > XPath error in Xpath.class.php:4224 The supplied xPath-query > > > '/Elenco_Pratiche[1]' does not match *any* node in the xml > > > document. > > > > > > XPath error in Xpath.class.php:966 Couldn't get an exclusive lock > > > on the c:/programmi/apache > > > group/apache/htdocs/FEDRAXPATH/SV/PHP/XML/Elenco_Pratiche.xml > > > file. > > > > > > Before to close my msg I have see a very strangeness. > > > > > > At the start the XML file Elenco_Pratiche.XML it is like this: > > > > > > <?xml version="1.0" ?> > > > <Elenco_Pratiche> > > > <RECORD> > > > <Cod_Pratica>null</Cod_Pratica> > > > <Mod_Base>null</Mod_Base> > > > <Denominazione>null</Denominazione> > > > <Ultimo_Agg>null</Ultimo_Agg> > > > <Ultimo_Scar>null</Ultimo_Scar> > > > <Tipo_Scar>null</Tipo_Scar> > > > </RECORD> > > > </Elenco_Pratiche> > > > > > > I want to clone this NODE and CHILD with the field and with there > > > value of the HTML page generated by PHP code. > > > > > > After to execute my code PHP and when I have a error the file XML > > > Elenco_Pratiche.xml are empty > > > > > > Thanks all for response. I like if the Fiends of the NG write me > > > also directly. Thanks. > > > > > > Ciao e grazie. Franco > > > > www.infocamere.it > > fra...@in... > > > > > > > > > > > > > > _______________________________________________________________ > > > > Don't miss the 2002 Sprint PCS Application Developer's Conference > > August 25-28 in Las Vegas -- > > http://devcon.sprintpcs.com/adp/index.cfm > > > > _______________________________________________ > > Phpxpath-users mailing list > > Php...@li... > > https://lists.sourceforge.net/lists/listinfo/phpxpath-users |