PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WEBDEV 2024 → PHPExecute
PHPExecute
Iniciado por Marcelo NISHI ( Pala, jun., 29 2013 2:28 PM - 3 respostas
Membro registado
3 mensagems
Publicado em junho, 29 2013 - 2:28 PM
Hello! Someone already used PHPExecute("somescript.php")?
I tried to use it but without success. I put my php script in the root of the Web Site (I'm using Apache and PHP) and, when I try to call the PHPExecute("/somescript.php"), it seems that he cannot find the script file, cause stay loading the webpage waiting for the webserver. Plus, I tried to change from PHPExecute("/somescript.php") to PHPExecute("\somescript.php") and I notice this error: php_network_getaddresses: getaddrinfo failed.

Can someone help me?

Thanks.
Publicado em junho, 29 2013 - 4:45 PM
Hi Marcelo

when you say:
>>...cause stay loading the webpage waiting for the webserver. Plus, I ...

It make me think that you may be looking to use PHPDIsplay and not
PHPExecute

If you really want to use PHPExecute, then tell us what is in the
resulting string

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

New web site (EXPERIMENTAL) http://www.fabriceharari.eu
(More information on http://www.fabriceharari.com)



On 6/29/2013 6:28 AM, Marcelo NISHI ( Pala wrote:
Hello! Someone already used PHPExecute("somescript.php")?
I tried to use it but without success. I put my php script in the root
of the Web Site (I'm using Apache and PHP) and, when I try to call the
PHPExecute("/somescript.php"), it seems that he cannot find the script
file, cause stay loading the webpage waiting for the webserver. Plus, I
tried to change from PHPExecute("/somescript.php") to
PHPExecute("\somescript.php") and I notice this error:
php_network_getaddresses: getaddrinfo failed.

Can someone help me?

Thanks.
Membro registado
3 mensagems
Publicado em julho, 01 2013 - 3:05 PM
Hi Fabrice,

The result string that I'm waiting from the php script is a "true" or "false" strings. I don't know if I'm right, but I trying to get that string from php script through the echo.
Publicado em julho, 01 2013 - 4:04 PM
Hi Marcelo

I'm not a specialist in php...No, let me rephrase that... I don't know
jack about PHP :-)... But the result you are getting back from a
scriptexecute is what would be displayed (the WHOLE page) if you call
the same URL from a browser.

If you were to call an awp page instead of your php, the code to send
back "true" would be StringDisplay("true")... You'll have to find the
php equivalent to the stringdisplay

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

New web site (EXPERIMENTAL) http://www.fabriceharari.eu
(More information on http://www.fabriceharari.com)


On 7/1/2013 7:05 AM, Marcelo NISHI ( Pala wrote:
Hi Fabrice,

The result string that I'm waiting from the php script is a "true" or
"false" strings. I don't know if I'm right, but I trying to get that
string from php script through the echo.