Old 24th August 2019, 10:14   #1
Sonicer
Junior Member
 
Join Date: Aug 2019
Posts: 4
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 is offline   Reply With Quote
Old 24th August 2019, 13:00   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,181
INetC

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 24th August 2019, 13:39   #3
Sonicer
Junior Member
 
Join Date: Aug 2019
Posts: 4
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 is offline   Reply With Quote
Old 24th August 2019, 17:10   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,181
File and content of page is the same thing.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 26th August 2019, 08:56   #5
Sonicer
Junior Member
 
Join Date: Aug 2019
Posts: 4
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 INTO #__xxx_active (OrderID) VALUES ('".$OrderID."')";
$db->setQuery($query);
$db->execute();
echo "true";
}
else
echo "false";
Sonicer is offline   Reply With Quote
Old 26th August 2019, 10:10   #6
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 882
Try popping the stack a second time?

netc::post /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|"

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 27th August 2019, 12:05   #7
Sonicer
Junior Member
 
Join Date: Aug 2019
Posts: 4
thx ..it work.
super.
Sonicer is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump