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

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?
>
> http://197.0.28.226:8984
>
> and
> http://197.0.28.226:80
>
> 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
>>
>
>