Skip to content
⌘ NSIS Forum Archive

Nsis PHP return value as webpage content

7 posts

Sonicer#

Nsis PHP return value as webpage content

I have parameters And webpage.
I need call www.xxx.php?c=parameters And the PHP return value with echo "value"
Is it possible get this value.. get content of webpage.
THX.
Sonicer#
I know this plugin. But there Is many samples that show download file and then get the content of filé not content of webpage.

Can you get mě some sample
Sonicer#
thx. But still only "OK" return Value.

I have
inetc:😛ost /NOCANCEL /TOSTACK /SILENT "http://www.xxx.com/Addr.php$Parameter$URL" $0 /END
Pop $0 # return value = exit code, "OK" if OK
MessageBox MB_OK "info: $0"
still ok ..also if php return false....Here is the php code:

if($body==null)
{

$query="INSERT IGNORE INTO #__xxx_active (OrderID) VALUES ('".$OrderID."')";
$db->setQuery($query);
$db->execute();
echo "true";
}
else
echo "false";
JasonFriday13#
Try popping the stack a second time?

netc:😛ost /NOCANCEL /TOSTACK /SILENT "http://www.xxx.com/Addr.php$Parameter$URL" $0 /END
Pop $0 # return value = exit code, "OK" if OK
Pop $1 # maybe it's here?
MessageBox MB_OK "return: |$0|, info: |$1|"