PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → PHPExecute
PHPExecute
Débuté par Marcelo NISHI ( Pala, 29 juin 2013 14:28 - 3 réponses
Membre enregistré
3 messages
Posté le 29 juin 2013 - 14:28
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.
Posté le 29 juin 2013 - 16:45
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.
Membre enregistré
3 messages
Posté le 01 juillet 2013 - 15:05
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.
Posté le 01 juillet 2013 - 16:04
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.