Thank you but even i will change that, i will have the same error: "cann't communicate with server". Note that:In my distant server (http://www.works.tn/works.tn/user1/fnxquerybasex/SemantiqFn.php) it shows me the error but if i execute the same file in local pc, it works fine without problem. I'm using php page which will be executed on apache server. I dont want send the xquery query in the adress bar of the browser.the queried xml file and the php client are located at www.works.tn server of course.and i'm connecting using the php file to another server: http://197.0.28.226:8984
which contain the BaseX to execute the xquery query. De : "Lizzi, Vincent" Vincent.Lizzi@taylorandfrancis.com À : Mohamed kharrat med_khr@yahoo.fr Cc : "basex-talk@mailman.uni-konstanz.de" basex-talk@mailman.uni-konstanz.de Envoyé le : Mardi 7 juin 2016 22h05 Objet : RE: [basex-talk] question about http server
#yiv8274958241 #yiv8274958241 -- _filtered #yiv8274958241 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv8274958241 {panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv8274958241 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv8274958241 #yiv8274958241 p.yiv8274958241MsoNormal, #yiv8274958241 li.yiv8274958241MsoNormal, #yiv8274958241 div.yiv8274958241MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv8274958241 a:link, #yiv8274958241 span.yiv8274958241MsoHyperlink {color:blue;text-decoration:underline;}#yiv8274958241 a:visited, #yiv8274958241 span.yiv8274958241MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv8274958241 span.yiv8274958241EmailStyle17 {color:#1F497D;}#yiv8274958241 .yiv8274958241MsoChpDefault {font-size:10.0pt;} _filtered #yiv8274958241 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv8274958241 div.yiv8274958241WordSection1 {}#yiv8274958241 One hint on your PHP code SemantiqFn: variables file and relation are being concatenated into the query string by PHP. Instead you can bind variables, which is safer in case the data contains a quote which would break your concatenation. Declare the variables at the top of each query: declare variable $file external; declare variable $relation external; then in your PHP pass these variables to the query using the bind method. Vincent From: basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de]On Behalf Of Mohamed kharrat Sent: Tuesday, June 07, 2016 12:48 PM To: Christian Grün christian.gruen@gmail.com Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] question about http server can you please now see in attachement the php file containing the connexion of baseX ? it do not work for me, it show me (cannot communicate with server) De : Christian Grün christian.gruen@gmail.com À : Mohamed kharrat med_khr@yahoo.fr Cc : "basex-talk@mailman.uni-konstanz.de" basex-talk@mailman.uni-konstanz.de Envoyé le : Mardi 7 juin 2016 17h39 Objet : Re: [basex-talk] question about http server It both works for me.
A little hint: Better try to avoid posting private URLs to the list. On Tue, Jun 7, 2016 at 6:27 PM, Mohamed kharrat med_khr@yahoo.fr wrote:
Can you please try this 2 adress and tell me what you get?
Thanks
De : Christian Grün christian.gruen@gmail.com À : Mohamed kharrat med_khr@yahoo.fr Cc : "basex-talk@mailman.uni-konstanz.de" basex-talk@mailman.uni-konstanz.de Envoyé le : Mardi 7 juin 2016 11h07 Objet : Re: [basex-talk] question about http server
Hi Mohamed,
This sounds like a general port issue, it’s probably not strictly related to BaseX. Did you check your firewall?
Regards, Christian
On Mon, Jun 6, 2016 at 5:23 PM, Mohamed kharrat med_khr@yahoo.fr wrote:
Hi, i have setted my pc as server over TinyWeb i have everything ok. i opened in my pc 8984 port. if i execute my php file containing xquery query locally, it works but if i execute it remotely over the ip and port, it show me this message: can't communicate with server.
Anyone have an idea about that?
Thanks